浏览代码

Merge pull request #39585 from thaJeztah/trim_the_zero

Dockerfile.windows: trim .0 from Go versions
Brian Goff 6 年之前
父节点
当前提交
b00666366b
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Dockerfile.windows

+ 1 - 1
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; `