Skip to content

Commit

Permalink
DO NOT MERGE
Browse files Browse the repository at this point in the history
test container using MS' go instead of google's go.
Prelim investigation for FIPS/Fedramp
  • Loading branch information
derekwbrown committed Apr 3, 2024
1 parent 4135b1c commit 059c7be
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions windows/helpers/phase3/install_go.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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"
Expand Down

0 comments on commit 059c7be

Please sign in to comment.