diff --git a/windows/modules/DDDeveloper/main.psm1 b/windows/modules/DDDeveloper/main.psm1 index 1733f3e36..3f85cbf41 100644 --- a/windows/modules/DDDeveloper/main.psm1 +++ b/windows/modules/DDDeveloper/main.psm1 @@ -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"