diff --git a/windows/helpers/phase3/install_go.ps1 b/windows/helpers/phase3/install_go.ps1 index c46e68873..e51e857ec 100644 --- a/windows/helpers/phase3/install_go.ps1 +++ b/windows/helpers/phase3/install_go.ps1 @@ -3,10 +3,14 @@ $ProgressPreference = 'SilentlyContinue' Write-Host -ForegroundColor Green "Installing go $ENV:GO_VERSION" -$gozip = "https://dl.google.com/go/go$ENV:GO_VERSION.windows-amd64.zip" +## temporary for MS go +$MS_GO_VERSION = "1.21.8-3" +$MS_GO_LINK="https://aka.ms/golang/release/latest/go$($MS_GO_VERSION).windows-amd64.zip" +$gozip = "https://dl.google.com/go/go$ENV:GO_VERSION.windows-amd64.zip" +$gozip = $MS_GO_LINK $out = "$($PSScriptRoot)\go.zip" - +$hash = "897e8d2b717f5e8d4d16febdcd6a600982d7eda7f352ec6518659b433fee90a5" ## ## because we want to allow multiple versions of GO, we need to handle ## the version check a bit differently. Get all the installed versions @@ -19,7 +23,7 @@ if($installedVers -and $installedVers.Contains($ENV:GO_VERSION)) { } Write-Host -ForegroundColor Green "Downloading $gozip to $out" -Get-RemoteFile -RemoteFile $gozip -LocalFile $out -VerifyHash $ENV:GO_SHA256_WINDOWS_AMD64 +Get-RemoteFile -RemoteFile $gozip -LocalFile $out -VerifyHash $hash ## set up proper output directory $godir = "c:\go\$ENV:GO_VERSION"