"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "scripts/fork_go_templates/main.go" between
hugo-0.80.0.tar.gz and hugo-0.81.0.tar.gz

About: Hugo is a static site generator that takes a source directory of Markdown files and templates and uses these as input to create a complete website (written in Go).

main.go  (hugo-0.80.0):main.go  (hugo-0.81.0)
skipping to change at line 21 skipping to change at line 21
"github.com/gohugoio/hugo/common/hexec" "github.com/gohugoio/hugo/common/hexec"
"github.com/gohugoio/hugo/common/hugio" "github.com/gohugoio/hugo/common/hugio"
"github.com/spf13/afero" "github.com/spf13/afero"
) )
func main() { func main() {
// TODO(bep) git checkout tag // TODO(bep) git checkout tag
// The current is built with Go version b68fa57c599720d33a2d735782969ce95 eabf794 / go1.15dev // The current is built with Go version 2f0da6d9e29d9b9d5a4d10427ca9f71d1 2bbacc8 / go1.16
fmt.Println("Forking ...") fmt.Println("Forking ...")
defer fmt.Println("Done ...") defer fmt.Println("Done ...")
cleanFork() cleanFork()
htmlRoot := filepath.Join(forkRoot, "htmltemplate") htmlRoot := filepath.Join(forkRoot, "htmltemplate")
for _, pkg := range goPackages { for _, pkg := range goPackages {
copyGoPackage(pkg.dstPkg, pkg.srcPkg) copyGoPackage(pkg.dstPkg, pkg.srcPkg)
} }
skipping to change at line 78 skipping to change at line 78
testEnvReplacers = strings.NewReplacer( testEnvReplacers = strings.NewReplacer(
`"internal/cfg"`, `"github.com/gohugoio/hugo/tpl/internal/go_temp lates/cfg"`, `"internal/cfg"`, `"github.com/gohugoio/hugo/tpl/internal/go_temp lates/cfg"`,
) )
htmlTemplateReplacers = strings.NewReplacer( htmlTemplateReplacers = strings.NewReplacer(
`. "html/template"`, `. "github.com/gohugoio/hugo/tpl/internal/go _templates/htmltemplate"`, `. "html/template"`, `. "github.com/gohugoio/hugo/tpl/internal/go _templates/htmltemplate"`,
`"html/template"`, `template "github.com/gohugoio/hugo/tpl/intern al/go_templates/htmltemplate"`, `"html/template"`, `template "github.com/gohugoio/hugo/tpl/intern al/go_templates/htmltemplate"`,
"\"text/template\"\n", "template \"github.com/gohugoio/hugo/tpl/i nternal/go_templates/texttemplate\"\n", "\"text/template\"\n", "template \"github.com/gohugoio/hugo/tpl/i nternal/go_templates/texttemplate\"\n",
`"html/template"`, `htmltemplate "html/template"`, `"html/template"`, `htmltemplate "html/template"`,
`"fmt"`, `htmltemplate "html/template"`, `"fmt"`, `htmltemplate "html/template"`,
`t.Skip("this test currently fails with -race; see issue #39807") `, `// t.Skip("this test currently fails with -race; see issue #39807")`,
) )
) )
func commonReplace(name, content string) string { func commonReplace(name, content string) string {
if strings.HasSuffix(name, "_test.go") { if strings.HasSuffix(name, "_test.go") {
content = strings.Replace(content, "package template\n", `// +bui ld go1.13,!windows content = strings.Replace(content, "package template\n", `// +bui ld go1.13,!windows
package template package template
`, 1) `, 1)
content = strings.Replace(content, "package template_test\n", `// +build go1.13 content = strings.Replace(content, "package template_test\n", `// +build go1.13
 End of changes. 2 change blocks. 
1 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)