aboutsummaryrefslogtreecommitdiffhomepage
path: root/tpl
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <[email protected]>2024-08-01 10:02:14 +0200
committerBjørn Erik Pedersen <[email protected]>2024-08-01 12:07:27 +0200
commit071f8b4466062da1758f34046947471d59a33b86 (patch)
treefade08da53e1fe978a1730480dcd2b82e4abd4f7 /tpl
parentae9d5e7d83d3e93a6ec9469a162ae96171d5800f (diff)
downloadhugo-071f8b4466062da1758f34046947471d59a33b86.tar.gz
hugo-071f8b4466062da1758f34046947471d59a33b86.zip
tpl: Sync Go template packages with the Go 1.22.5 source
Diffstat (limited to 'tpl')
-rw-r--r--tpl/internal/go_templates/testenv/testenv.go1
-rw-r--r--tpl/internal/go_templates/testenv/testenv_test.go2
-rw-r--r--tpl/internal/go_templates/texttemplate/exec_test.go3
-rw-r--r--tpl/internal/go_templates/texttemplate/parse/parse_test.go3
4 files changed, 2 insertions, 7 deletions
diff --git a/tpl/internal/go_templates/testenv/testenv.go b/tpl/internal/go_templates/testenv/testenv.go
index 97d897a1f..277df2255 100644
--- a/tpl/internal/go_templates/testenv/testenv.go
+++ b/tpl/internal/go_templates/testenv/testenv.go
@@ -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.
diff --git a/tpl/internal/go_templates/testenv/testenv_test.go b/tpl/internal/go_templates/testenv/testenv_test.go
index d4b2b368f..4aabc00a6 100644
--- a/tpl/internal/go_templates/testenv/testenv_test.go
+++ b/tpl/internal/go_templates/testenv/testenv_test.go
@@ -54,7 +54,7 @@ func TestGoToolLocation(t *testing.T) {
}
}
-// Modified by Hugo.
+// Modified by Hugo (not needed)
func TestHasGoBuild(t *testing.T) {
}
diff --git a/tpl/internal/go_templates/texttemplate/exec_test.go b/tpl/internal/go_templates/texttemplate/exec_test.go
index 030e20ca0..ed75adacb 100644
--- a/tpl/internal/go_templates/texttemplate/exec_test.go
+++ b/tpl/internal/go_templates/texttemplate/exec_test.go
@@ -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 (
diff --git a/tpl/internal/go_templates/texttemplate/parse/parse_test.go b/tpl/internal/go_templates/texttemplate/parse/parse_test.go
index 080eea2f9..59e0a1741 100644
--- a/tpl/internal/go_templates/texttemplate/parse/parse_test.go
+++ b/tpl/internal/go_templates/texttemplate/parse/parse_test.go
@@ -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 (