From 31897b571606ce722c147eba0802f43a3d83bddd Mon Sep 17 00:00:00 2001 From: Stefan Bueringer Date: Mon, 5 Feb 2024 13:41:20 +0100 Subject: [PATCH] Bump to Go 1.21 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Stefan Büringer buringerst@vmware.com --- .github/workflows/cover.yaml | 2 +- .golangci.yml | 2 +- Makefile | 2 +- hack/ensure-go.sh | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/cover.yaml b/.github/workflows/cover.yaml index 71f66637b0..d5d51d0448 100644 --- a/.github/workflows/cover.yaml +++ b/.github/workflows/cover.yaml @@ -20,7 +20,7 @@ jobs: - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 - uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0 with: - go-version: '1.20' + go-version: '1.21' - run: "PATH=/usr/local/go/bin:$PATH make test-cover" - uses: Wandalen/wretry.action@62451a214c01d1b0136b4f87289d840b30d67b98 # v1.3.0 Retry codecov upload. It is flaky due to a known issue https://community.codecov.com/t/upload-issues-unable-to-locate-build-via-github-actions-api/3954 with: diff --git a/.golangci.yml b/.golangci.yml index c611d3bf6b..68a996ac80 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -1,6 +1,6 @@ run: timeout: 10m - go: "1.20" + go: "1.21" skip-files: - "zz_generated.*\\.go$" allow-parallel-runners: true diff --git a/Makefile b/Makefile index 6ec0daf2db..1369bc6396 100644 --- a/Makefile +++ b/Makefile @@ -23,7 +23,7 @@ SHELL:=/usr/bin/env bash # # Go. # -GO_VERSION ?= 1.20.12 +GO_VERSION ?= 1.21.5 GO_CONTAINER_IMAGE ?= docker.io/library/golang:$(GO_VERSION) # Use GOPROXY environment variable if set diff --git a/hack/ensure-go.sh b/hack/ensure-go.sh index 08186dd58e..f9c2152de3 100755 --- a/hack/ensure-go.sh +++ b/hack/ensure-go.sh @@ -21,7 +21,7 @@ set -o pipefail # MIN_GO_VERSION is the minimum, supported Go version. # Note: Enforce only the minor version as we can't guarantee that # the images we use in ProwJobs already use the latest patch version. -MIN_GO_VERSION="go${MIN_GO_VERSION:-1.20}" +MIN_GO_VERSION="go${MIN_GO_VERSION:-1.21}" # Ensure the go tool exists and is a viable version. verify_go_version() {