mirror of
https://github.com/github/codeql.git
synced 2026-04-25 16:55:19 +02:00
Do not call EmitNewerGoVersionNeeded for v1.21+
This commit is contained in:
@@ -788,7 +788,9 @@ func installDependenciesAndBuild() {
|
||||
|
||||
goVersionInfo := tryReadGoDirective(buildInfo)
|
||||
|
||||
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
|
||||
// Go tooling should install required Go versions as needed.
|
||||
if semver.Compare(getEnvGoSemVer(), "v1.21.0") < 0 && goVersionInfo.Found && semver.Compare("v"+goVersionInfo.Version, getEnvGoSemVer()) > 0 {
|
||||
diagnostics.EmitNewerGoVersionNeeded()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user