Skip to content

Commit e465ebf

Browse files
update to go1.21.1, and fix download-URL
This required changes to the download-URL, as downloads are now provided using the full version (including the `.0` patch version); curl -sI https://go.dev/dl/go1.21.windows-amd64.zip | grep 'location' location: https://dl.google.com/go/go1.21.windows-amd64.zip curl -sI https://dl.google.com/go/go1.21.windows-amd64.zip HTTP/2 404 # ... curl -sI https://dl.google.com/go/go1.21.0.windows-amd64.zip HTTP/2 200 # ... Unfortunately this also means that the GO_VERSION can no longer be set to versions lower than 1.21.0 (without additional changes), because older versions do NOT provide the `.0` version, and Go 1.21.0 and up, no longer provides URLs _without_ the `.0` version. Co-authored-by: Bjorn Neergaard <[email protected]> Signed-off-by: Bjorn Neergaard <[email protected]> Signed-off-by: Sebastiaan van Stijn <[email protected]>
1 parent aa28297 commit e465ebf

7 files changed

Lines changed: 8 additions & 8 deletions

File tree

.github/workflows/.windows.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ on:
1515
default: false
1616

1717
env:
18-
GO_VERSION: "1.20.8"
18+
GO_VERSION: "1.21.1"
1919
GOTESTLIST_VERSION: v0.3.1
2020
TESTSTAT_VERSION: v0.1.3
2121
WINDOWS_BASE_IMAGE: mcr.microsoft.com/windows/servercore

.github/workflows/buildkit.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ on:
1313
pull_request:
1414

1515
env:
16-
GO_VERSION: "1.20.8"
16+
GO_VERSION: "1.21.1"
1717
DESTDIR: ./build
1818

1919
jobs:

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ on:
1515
pull_request:
1616

1717
env:
18-
GO_VERSION: "1.20.8"
18+
GO_VERSION: "1.21.1"
1919
GOTESTLIST_VERSION: v0.3.1
2020
TESTSTAT_VERSION: v0.1.3
2121
ITG_CLI_MATRIX_SIZE: 6

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# syntax=docker/dockerfile:1
22

3-
ARG GO_VERSION=1.20.8
3+
ARG GO_VERSION=1.21.1
44
ARG BASE_DEBIAN_DISTRO="bullseye"
55
ARG GOLANG_IMAGE="golang:${GO_VERSION}-${BASE_DEBIAN_DISTRO}"
66
ARG XX_VERSION=1.2.1

Dockerfile.simple

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
# This represents the bare minimum required to build and test Docker.
77

8-
ARG GO_VERSION=1.20.8
8+
ARG GO_VERSION=1.21.1
99

1010
ARG BASE_DEBIAN_DISTRO="bullseye"
1111
ARG GOLANG_IMAGE="golang:${GO_VERSION}-${BASE_DEBIAN_DISTRO}"

Dockerfile.windows

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ FROM ${WINDOWS_BASE_IMAGE}:${WINDOWS_BASE_IMAGE_TAG}
161161
# Use PowerShell as the default shell
162162
SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"]
163163

164-
ARG GO_VERSION=1.20.8
164+
ARG GO_VERSION=1.21.1
165165
ARG GOTESTSUM_VERSION=v1.8.2
166166
ARG GOWINRES_VERSION=v0.3.0
167167
ARG CONTAINERD_VERSION=v1.7.6
@@ -220,7 +220,7 @@ RUN `
220220
Download-File $location C:\gitsetup.zip; `
221221
`
222222
Write-Host INFO: Downloading go...; `
223-
$dlGoVersion=$Env:GO_VERSION -replace '\.0$',''; `
223+
$dlGoVersion=$Env:GO_VERSION; `
224224
Download-File "https://go.dev/dl/go${dlGoVersion}.windows-amd64.zip" C:\go.zip; `
225225
`
226226
Write-Host INFO: Downloading compiler 1 of 3...; `

hack/dockerfiles/generate-files.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# syntax=docker/dockerfile:1
22

3-
ARG GO_VERSION=1.20.8
3+
ARG GO_VERSION=1.21.1
44
ARG BASE_DEBIAN_DISTRO="bullseye"
55
ARG PROTOC_VERSION=3.11.4
66

0 commit comments

Comments
 (0)