From 952fa4d207e0361b8d7742d3f5210c58b77525ae Mon Sep 17 00:00:00 2001 From: Bjorn Neergaard Date: Fri, 3 Feb 2023 05:48:09 -0700 Subject: [PATCH] Upgrade to Go 1.20 Signed-off-by: Bjorn Neergaard Co-authored-by: Cory Snider Signed-off-by: Cory Snider (cherry picked from commit d4e7a87b9655bef350f487b01c1a6c9ca281f836) Signed-off-by: Cory Snider --- .github/workflows/.windows.yml | 2 +- .github/workflows/test.yml | 2 +- Dockerfile | 2 +- Dockerfile.e2e | 2 +- Dockerfile.simple | 2 +- Dockerfile.windows | 2 +- hack/with-go-mod.sh | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/.windows.yml b/.github/workflows/.windows.yml index 14d82d5063..074977ef59 100644 --- a/.github/workflows/.windows.yml +++ b/.github/workflows/.windows.yml @@ -15,7 +15,7 @@ on: default: false env: - GO_VERSION: 1.19.10 + GO_VERSION: "1.20" GOTESTLIST_VERSION: v0.3.1 TESTSTAT_VERSION: v0.1.3 WINDOWS_BASE_IMAGE: mcr.microsoft.com/windows/servercore diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index ad77d46bb5..3eaac9a2d8 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -15,7 +15,7 @@ on: pull_request: env: - GO_VERSION: 1.19.10 + GO_VERSION: "1.20" GOTESTLIST_VERSION: v0.3.1 TESTSTAT_VERSION: v0.1.3 ITG_CLI_MATRIX_SIZE: 6 diff --git a/Dockerfile b/Dockerfile index 3573f0270b..70543feca6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,6 @@ # syntax=docker/dockerfile:1 -ARG GO_VERSION=1.19.10 +ARG GO_VERSION=1.20 ARG BASE_DEBIAN_DISTRO="bullseye" ARG GOLANG_IMAGE="golang:${GO_VERSION}-${BASE_DEBIAN_DISTRO}" ARG XX_VERSION=1.2.1 diff --git a/Dockerfile.e2e b/Dockerfile.e2e index cf7a2cd99d..03aca36087 100644 --- a/Dockerfile.e2e +++ b/Dockerfile.e2e @@ -1,4 +1,4 @@ -ARG GO_VERSION=1.19.10 +ARG GO_VERSION=1.20 FROM golang:${GO_VERSION}-alpine AS base ENV GO111MODULE=off diff --git a/Dockerfile.simple b/Dockerfile.simple index d8af8f5735..572f4a249c 100644 --- a/Dockerfile.simple +++ b/Dockerfile.simple @@ -5,7 +5,7 @@ # This represents the bare minimum required to build and test Docker. -ARG GO_VERSION=1.19.10 +ARG GO_VERSION=1.20 ARG BASE_DEBIAN_DISTRO="bullseye" ARG GOLANG_IMAGE="golang:${GO_VERSION}-${BASE_DEBIAN_DISTRO}" diff --git a/Dockerfile.windows b/Dockerfile.windows index 7cb443af15..e02fa47984 100644 --- a/Dockerfile.windows +++ b/Dockerfile.windows @@ -165,7 +165,7 @@ FROM microsoft/windowsservercore # Use PowerShell as the default shell SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"] -ARG GO_VERSION=1.19.10 +ARG GO_VERSION=1.20 ARG GOTESTSUM_VERSION=v1.8.2 ARG GOWINRES_VERSION=v0.3.0 ARG CONTAINERD_VERSION=v1.6.21 diff --git a/hack/with-go-mod.sh b/hack/with-go-mod.sh index 911eb3b50b..3be44d11ec 100755 --- a/hack/with-go-mod.sh +++ b/hack/with-go-mod.sh @@ -23,7 +23,7 @@ else tee "${ROOTDIR}/go.mod" >&2 <<- EOF module github.com/docker/docker - go 1.18 + go 1.19 EOF trap 'rm -f "${ROOTDIR}/go.mod"' EXIT fi