Browse code

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>

Sebastiaan van Stijn authored on 2019/07/20 19:46:07
Showing 1 changed files
... ...
@@ -214,7 +214,7 @@ RUN `
214 214
   Download-File $location C:\gitsetup.zip; `
215 215
   `
216 216
   Write-Host INFO: Downloading go...; `
217
-  Download-File $('https://golang.org/dl/go'+$Env:GO_VERSION+'.windows-amd64.zip') C:\go.zip; `
217
+  Download-File $('https://golang.org/dl/go'+$Env:GO_VERSION.TrimEnd('.0')"+'.windows-amd64.zip') C:\go.zip; `
218 218
   `
219 219
   Write-Host INFO: Downloading compiler 1 of 3...; `
220 220
   Download-File https://raw.githubusercontent.com/jhowardmsft/docker-tdmgcc/master/gcc.zip C:\gcc.zip; `