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 15, 2024
1 parent 898383c commit 6652685
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 6652685

Please sign in to comment.