mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-21 20:46:30 -05:00
parent
75c0f88289
commit
79a17d9e55
1 changed files with 1 additions and 1 deletions
|
@ -398,7 +398,7 @@ func testSetupFunc() func(env *testscript.Env) error {
|
|||
goVersion := runtime.Version()
|
||||
|
||||
goVersion = strings.TrimPrefix(goVersion, "go")
|
||||
if !strings.HasSuffix(goVersion, ".0") {
|
||||
if strings.HasPrefix(goVersion, "1.20") {
|
||||
// Strip patch version.
|
||||
goVersion = goVersion[:strings.LastIndex(goVersion, ".")]
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue