From: Bjørn Erik Pedersen Date: Fri, 6 Mar 2026 11:18:19 +0000 (+0100) Subject: testing: Make commands tests pass in Go 1.26.1 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=157bfddda5c3d4029285bc678376765f0af0c952;p=brevno-suite%2Fhugo testing: Make commands tests pass in Go 1.26.1 --- diff --git a/main_test.go b/main_test.go index 67adbe5dc..31a0a9683 100644 --- a/main_test.go +++ b/main_test.go @@ -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" }