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.
toolchain.IsInstalled
1 parent 898383c commit 6652685Copy full SHA for 6652685
go/extractor/autobuilder/build-environment.go
@@ -274,7 +274,9 @@ func IdentifyEnvironment() {
274
v.goModVersion = project.RequiredGoVersion(&workspaces)
275
276
// Find which, if any, version of Go is installed on the system already.
277
- v.goEnvVersion = toolchain.GetEnvGoSemVer()
+ if toolchain.IsInstalled() {
278
+ v.goEnvVersion = toolchain.GetEnvGoSemVer()
279
+ }
280
281
// Determine which version of Go we should recommend to install.
282
msg, versionToInstall := getVersionToInstall(v)
0 commit comments