We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 6475034 + 55fa245 commit 48f9343Copy full SHA for 48f9343
go/extractor/project/project.go
@@ -212,16 +212,6 @@ func LoadGoModules(emitDiagnostics bool, goModFilePaths []string) []*GoModule {
212
if modFile.Toolchain == nil && modFile.Go != nil &&
213
!toolchainVersionRe.Match([]byte(modFile.Go.Version)) && semver.Compare("v"+modFile.Go.Version, "v1.21.0") >= 0 {
214
diagnostics.EmitInvalidToolchainVersion(goModFilePath, modFile.Go.Version)
215
-
216
- modPath := filepath.Dir(goModFilePath)
217
218
- log.Printf(
219
- "`%s` is not a valid toolchain version, trying to install it explicitly using the canonical representation in `%s`.",
220
- modFile.Go.Version,
221
- modPath,
222
- )
223
224
- toolchain.InstallVersion(modPath, modFile.Go.Version)
225
}
226
227
0 commit comments