File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -537,12 +537,12 @@ func installDependenciesAndBuild() {
537
537
538
538
// This diagnostic is not required if the system Go version is 1.21 or greater, since the
539
539
// Go tooling should install required Go versions as needed.
540
- if semver .Compare (toolchain .GetEnvGoSemVer (), "v1.21.0" ) < 0 && greatestGoVersion .Found && semver .Compare ("v" + greatestGoVersion .Version , toolchain .GetEnvGoSemVer ()) > 0 {
541
- diagnostics .EmitNewerGoVersionNeeded (toolchain .GetEnvGoSemVer (), "v" + greatestGoVersion .Version )
540
+ if semver .Compare (toolchain .GetEnvGoSemVer (), "v1.21.0" ) < 0 && greatestGoVersion .Found && semver .Compare (greatestGoVersion .Version , toolchain .GetEnvGoSemVer ()) > 0 {
541
+ diagnostics .EmitNewerGoVersionNeeded (toolchain .GetEnvGoSemVer (), greatestGoVersion .Version )
542
542
if val , _ := os .LookupEnv ("GITHUB_ACTIONS" ); val == "true" {
543
543
log .Printf (
544
544
"A go.mod file requires version %s of Go, but version %s is installed. Consider adding an actions/setup-go step to your workflow.\n " ,
545
- "v" + greatestGoVersion .Version ,
545
+ greatestGoVersion .Version ,
546
546
toolchain .GetEnvGoSemVer ())
547
547
}
548
548
}
You can’t perform that action at this time.
0 commit comments