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> (cherry picked from commit c5bd6e3dc7680d6c683496f63dafb1f30f87eaa7) Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com> Upstream-commit: 8f1a27c51f93698b5fe17f0fb043f47794e11cca Component: engine
This commit is contained in:
committed by
Kir Kolyshkin
parent
05c0875eab
commit
c0f1e37bd9
@ -207,7 +207,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; `
|
||||
|
||||
Reference in New Issue
Block a user