tpl: Sync Go template packages with the Go 1.22.5 source

This commit is contained in:
Bjørn Erik Pedersen 2024-08-01 10:02:14 +02:00
parent ae9d5e7d83
commit 071f8b4466
5 changed files with 3 additions and 8 deletions

View file

@ -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 ...")

View file

@ -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.

View file

@ -54,7 +54,7 @@ func TestGoToolLocation(t *testing.T) {
}
}
// Modified by Hugo.
// Modified by Hugo (not needed)
func TestHasGoBuild(t *testing.T) {
}

View file

@ -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 (

View file

@ -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 (