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

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