We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
>= 1.21
1 parent 2f4157c commit 24c7239Copy full SHA for 24c7239
go/extractor/project/project.go
@@ -208,7 +208,9 @@ func hasInvalidToolchainVersion(installedToolchainVersion util.SemVer, modFile *
208
// does not match the toolchain version format in Go 1.21 and Go 1.22.
209
// This is a problem if the installed Go toolchain is within that version range
210
// as it will try to use the language version as the toolchain version.
211
- return installedToolchainVersion.IsAtLeast(toolchain.V1_21) && installedToolchainVersion.IsOlderThan(toolchain.V1_23)
+ return util.NewSemVer(modFile.Go.Version).IsAtLeast(toolchain.V1_21) &&
212
+ installedToolchainVersion.IsAtLeast(toolchain.V1_21) &&
213
+ installedToolchainVersion.IsOlderThan(toolchain.V1_23)
214
}
215
return false
216
0 commit comments