summaryrefslogtreecommitdiff
path: root/Dockerfile.windows
diff options
context:
space:
mode:
authorSebastiaan van Stijn <github@gone.nl>2019-07-20 12:46:07 +0200
committerSebastiaan van Stijn <github@gone.nl>2019-07-20 13:00:56 +0200
commitc5bd6e3dc7680d6c683496f63dafb1f30f87eaa7 (patch)
tree694884e319e6f47e3527a1cec2b9901866e32f81 /Dockerfile.windows
parent48da116486059e57e1962234d6751b4b977ee1c8 (diff)
downloaddocker-c5bd6e3dc7680d6c683496f63dafb1f30f87eaa7.tar.gz
Dockerfile.windows: trim .0 from Go versions
This was an oversight when changing the Dockerfile to use a build-arg; the Windows Dockerfile downloads the Go binaries, which never have a trailing `.0`. This patch makes sure that the trailing zero (if any) is removed. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Diffstat (limited to 'Dockerfile.windows')
-rw-r--r--Dockerfile.windows2
1 files changed, 1 insertions, 1 deletions
diff --git a/Dockerfile.windows b/Dockerfile.windows
index c11b373c4f..c432186cc0 100644
--- a/Dockerfile.windows
+++ b/Dockerfile.windows
@@ -214,7 +214,7 @@ RUN `
Download-File $location C:\gitsetup.zip; `
`
Write-Host INFO: Downloading go...; `
- Download-File $('https://golang.org/dl/go'+$Env:GO_VERSION+'.windows-amd64.zip') C:\go.zip; `
+ Download-File $('https://golang.org/dl/go'+$Env:GO_VERSION.TrimEnd('.0')"+'.windows-amd64.zip') C:\go.zip; `
`
Write-Host INFO: Downloading compiler 1 of 3...; `
Download-File https://raw.githubusercontent.com/jhowardmsft/docker-tdmgcc/master/gcc.zip C:\gcc.zip; `