2016-11-15 00:19:36 UTC
417 MB
6a18e5ed8b39785338986aecc6a3f36f5c4be286ff52db0ae3bcd2275ab70df0
GOLANG_DOWNLOAD_URLhttps://golang.org/dl/go1.6.3.windows-amd64.zip
GOLANG_VERSION1.6.3
GOPATHC:\gopath
[#000] sha256:5496abde368a3dd39999745bf998c877ddc6a390a943bc3fd99ffaabf728ed88 - 55.5% (231 MB)
[#001] sha256:482ab31872a23b32cbdeca13edb7a0b97290714c0b5edcce96fbb3e34221ea91 - 22.99% (95.9 MB)
[#002] sha256:5754f9d84935d359a6194ff6aca82b2a08535f7bdc4855c50b91d6797af47d75 - 0.0% (961 Bytes)
[#003] sha256:27b7b304de65cc2507006afb90d24f8e6b039d0ccb277fa8bb150ff074cbb6df - 0.0% (955 Bytes)
[#004] sha256:dea80931ba5ad3798a845960ea41f81eb9f54ef55e6b4f88c692ac46f6ec5925 - 0.2% (835 KB)
[#005] sha256:89fbbb14b27c0605d67b219949a4b05b32d571c3c1e8e869031dda6c40202c0f - 0.0% (952 Bytes)
[#006] sha256:ac8dea3cf2b01fe3ca4fad837aad44dea2ba3db31bc1672bd5c04475f4230772 - 0.0% (952 Bytes)
[#007] sha256:bdd57e36d85c7624bc40e4764e0642a256e74ac0759445c046848951f1eb37c6 - 0.0% (949 Bytes)
[#008] sha256:018c629811ad94d6c3e284f39995fbd71d3853aa9ed451553892cde784bcf16a - 21.31% (88.8 MB)
[#009] sha256:b89e192ceee603c21c87dc3f09cba09559ea5872fa0ef52b36fe4a517164652f - 0.0% (977 Bytes)
powershell -Command $ErrorActionPreference = 'Stop'; #(nop) SHELL [powershell -Command $ErrorActionPreference = 'Stop';]
2016-11-15 00:14:25 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV GOPATH=C:\gopath
2016-11-15 00:15:00 UTCpowershell -Command $ErrorActionPreference = 'Stop'; $newPath = ('{0}\bin;C:\go\bin;{1}' -f $env:GOPATH, $env:PATH); Write-Host ('Updating PATH: {0}' -f $newPath); setx /M PATH $newPath;
2016-11-15 00:15:02 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV GOLANG_VERSION=1.6.3
2016-11-15 00:15:04 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV GOLANG_DOWNLOAD_URL=https://golang.org/dl/go1.6.3.windows-amd64.zip
2016-11-15 00:15:06 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV GOLANG_DOWNLOAD_SHA256=6a18e5ed8b39785338986aecc6a3f36f5c4be286ff52db0ae3bcd2275ab70df0
2016-11-15 00:19:33 UTCpowershell -Command $ErrorActionPreference = 'Stop'; Write-Host ('Downloading {0} ...' -f $env:GOLANG_DOWNLOAD_URL); Invoke-WebRequest -Uri $env:GOLANG_DOWNLOAD_URL -OutFile 'go.zip'; Write-Host ('Verifying sha256 ({0}) ...' -f $env:GOLANG_DOWNLOAD_SHA256); if ((Get-FileHash go.zip -Algorithm sha256).Hash -ne $env:GOLANG_DOWNLOAD_SHA256) { Write-Host 'FAILED!'; exit 1; }; Write-Host 'Expanding ...'; Expand-Archive go.zip -DestinationPath C:\; Write-Host 'Verifying install ("go version") ...'; go version; Write-Host 'Removing ...'; Remove-Item go.zip -Force; Write-Host 'Complete.';
2016-11-15 00:19:36 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) WORKDIR C:\gopath
Please be careful as this will not just delete the reference but also the actual content!
For example when you have latest and v1.2.3 both pointing to the same image
the deletion of latest will also permanently remove v1.2.3.