mirror of
https://github.com/gohugoio/hugo.git
synced 2026-08-24 07:18:54 +00:00
testing: Make commands tests pass in Go 1.26.1
This commit is contained in:
+2
-1
@@ -463,7 +463,8 @@ func testSetupFunc() func(env *testscript.Env) error {
|
||||
|
||||
goModVersion := goVersion
|
||||
// From Go 1.26.0 on, the version used in go.mod on go mod init is the current version minus one.
|
||||
if htesting.GoMinorVersion() >= 26 {
|
||||
// This was reverted in Go 1.26.1.
|
||||
if goVersion == "1.26.0" {
|
||||
goModVersion = "1.25.0"
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user