Skip to content

Commit b8372c2

Browse files
authored
Merge pull request github#13973 from github/smowton/fix/go-version-comparison
Go: Don't warn when Go version exactly matches go.mod
2 parents 234763e + 3bcfbcd commit b8372c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -773,7 +773,7 @@ func installDependenciesAndBuild() {
773773

774774
goModVersion, goModVersionFound := tryReadGoDirective(buildInfo)
775775

776-
if goModVersionFound && semver.Compare("v"+goModVersion, getEnvGoSemVer()) >= 0 {
776+
if goModVersionFound && semver.Compare("v"+goModVersion, getEnvGoSemVer()) > 0 {
777777
diagnostics.EmitNewerGoVersionNeeded()
778778
}
779779

0 commit comments

Comments
 (0)