Skip to content

Commit

Permalink
tpl: Sync Go template packages with the Go 1.22.5 source
Browse files Browse the repository at this point in the history
  • Loading branch information
bep committed Aug 1, 2024
1 parent ae9d5e7 commit 071f8b4
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 8 deletions.
2 changes: 1 addition & 1 deletion scripts/fork_go_templates/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import (
)

func main() {
// The current is built with db6097f8cb [release-branch.go1.22] go1.22.1
// The current is built with 8e1fdea8316d840fd07e9d6e026048e53290948b go1.22.5
// TODO(bep) preserve the staticcheck.conf file.
fmt.Println("Forking ...")
defer fmt.Println("Done ...")
Expand Down
1 change: 1 addition & 0 deletions tpl/internal/go_templates/testenv/testenv.go
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,7 @@ func MustInternalLink(t testing.TB, withCgo bool) {
// If not, MustHaveBuildMode calls t.Skip with an explanation.
// Modified by Hugo (not needed)
func MustHaveBuildMode(t testing.TB, buildmode string) {
return
}

// HasSymlink reports whether the current system can use os.Symlink.
Expand Down
2 changes: 1 addition & 1 deletion tpl/internal/go_templates/testenv/testenv_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ func TestGoToolLocation(t *testing.T) {
}
}

// Modified by Hugo.
// Modified by Hugo (not needed)
func TestHasGoBuild(t *testing.T) {
}

Expand Down
3 changes: 0 additions & 3 deletions tpl/internal/go_templates/texttemplate/exec_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

//go:build go1.13 && !windows
// +build go1.13,!windows

package template

import (
Expand Down
3 changes: 0 additions & 3 deletions tpl/internal/go_templates/texttemplate/parse/parse_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

//go:build go1.13
// +build go1.13

package parse

import (
Expand Down

0 comments on commit 071f8b4

Please sign in to comment.