We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
EmitNewerGoVersionNeeded
1 parent c63f680 commit 01a1d81Copy full SHA for 01a1d81
go/extractor/cli/go-autobuilder/go-autobuilder.go
@@ -788,7 +788,9 @@ func installDependenciesAndBuild() {
788
789
goVersionInfo := tryReadGoDirective(buildInfo)
790
791
- if goVersionInfo.Found && semver.Compare("v"+goVersionInfo.Version, getEnvGoSemVer()) > 0 {
+ // This diagnostic is not required if the system Go version is 1.21 or greater, since the
792
+ // Go tooling should install required Go versions as needed.
793
+ if semver.Compare(getEnvGoSemVer(), "v1.21.0") < 0 && goVersionInfo.Found && semver.Compare("v"+goVersionInfo.Version, getEnvGoSemVer()) > 0 {
794
diagnostics.EmitNewerGoVersionNeeded()
795
}
796
0 commit comments