Skip to content

Commit 5d06adb

Browse files
committed
Only check if go env version is supported if go mod version is supported
This is what I meant to implement in the first place.
1 parent 62653fb commit 5d06adb

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

go/extractor/cli/go-autobuilder/go-autobuilder.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -744,9 +744,7 @@ func checkForUnsupportedVersions(v versionInfo) (msg, version string) {
744744
") is outside of the supported range (" + minGoVersion + "-" + maxGoVersion + ")."
745745
version = ""
746746
diagnostics.EmitUnsupportedVersionGoMod(msg)
747-
}
748-
749-
if v.goEnvVersionFound && outsideSupportedRange(v.goEnvVersion) {
747+
} else if v.goEnvVersionFound && outsideSupportedRange(v.goEnvVersion) {
750748
msg = "The version of Go installed in the environment (" + v.goEnvVersion +
751749
") is outside of the supported range (" + minGoVersion + "-" + maxGoVersion + ")."
752750
version = ""

0 commit comments

Comments
 (0)