Skip to content

Commit

Permalink
Go: Restore toolchain.IsInstalled check
Browse files Browse the repository at this point in the history
  • Loading branch information
mbg committed May 11, 2024
1 parent d564b5f commit 6480d2d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion go/extractor/autobuilder/build-environment.go
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,9 @@ func IdentifyEnvironment() {
v.goModVersion = project.RequiredGoVersion(&workspaces)

// Find which, if any, version of Go is installed on the system already.
v.goEnvVersion = toolchain.GetEnvGoSemVer()
if toolchain.IsInstalled() {
v.goEnvVersion = toolchain.GetEnvGoSemVer()
}

// Determine which version of Go we should recommend to install.
msg, versionToInstall := getVersionToInstall(v)
Expand Down

0 comments on commit 6480d2d

Please sign in to comment.