Skip to content

Commit

Permalink
fix error in go path finding
Browse files Browse the repository at this point in the history
  • Loading branch information
derekwbrown committed Oct 12, 2022
1 parent b941bee commit baeb7b3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions windows/modules/DDDeveloper/main.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,12 @@ function Use-BuildEnv {
}

## append the proper go paths.
$useGoVersion = $GoVer
if(!$GoVer) {
$GoVer = Get-Goversions
$versions = Get-Goversions
$useGoVersion = $versions[0]
}
Set-GoVersion $GoVer
Set-GoVersion $useGoVersion

$newPathEntries += "$Env:GOROOT\bin"
$newPathEntries += "$Env:GOPATH\bin"
Expand Down

0 comments on commit baeb7b3

Please sign in to comment.