From d146f0792f266a80d6eb90828f8d828b28655ba3 Mon Sep 17 00:00:00 2001 From: Alexander Georgievskiy Date: Thu, 4 Oct 2018 15:20:21 +0300 Subject: [PATCH] Revert "install golang 1.11 on appveyor machines" This reverts commit 2af4f4d206662696a06029bc3094d6036c1163f2. --- appveyor.yml | 47 ----------------------------------------------- 1 file changed, 47 deletions(-) diff --git a/appveyor.yml b/appveyor.yml index cb8188ecb..60b78ccdc 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -16,55 +16,8 @@ environment: clone_folder: c:\gopath\src\github.com\hashicorp\packer install: - - ps: | - # Installs golang on Windows. - # - # # Run script: - # .\install-go.ps1 - # - # # Download and run script: - # $env:GOVERSION = '1.5.3' - # iex ((new-object net.webclient).DownloadString('SCRIPT_URL_HERE')) - - $version = '1.11' - - $downloadDir = $env:TEMP - $packageName = 'golang' - $url32 = 'https://storage.googleapis.com/golang/go' + $version + '.windows-386.zip' - $url64 = 'https://storage.googleapis.com/golang/go' + $version + '.windows-amd64.zip' - $goroot = "C:\go$version" - - # Determine type of system - if ($ENV:PROCESSOR_ARCHITECTURE -eq "AMD64") { - $url = $url64 - } else { - $url = $url32 - } - - if (Test-Path "$goroot\bin\go") { - Write-Host "Go is installed to $goroot" - exit - } - - echo "Downloading $url" - $zip = "$downloadDir\golang-$version.zip" - if (!(Test-Path "$zip")) { - $downloader = new-object System.Net.WebClient - $downloader.DownloadFile($url, $zip) - } - - echo "Extracting $zip to $goroot" - if (Test-Path "$downloadDir\go") { - rm -Force -Recurse -Path "$downloadDir\go" - } - Add-Type -AssemblyName System.IO.Compression.FileSystem - [System.IO.Compression.ZipFile]::ExtractToDirectory("$zip", $downloadDir) - mv "$downloadDir\go" $goroot - set GO15VENDOREXPERIMENT=1 - - set GOROOT=C:\go1.11 - - set Path=%GOROOT%\bin;%PATH% - echo %Path% - - echo %GOROOT% - go version - go env - go get github.com/mitchellh/gox