From caf8e33de33946e852a4cebfb87fdf48fee1a9ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Wei=C3=9Fe?= Date: Wed, 5 Jun 2024 09:38:11 +0200 Subject: [PATCH] Bump Go version to v1.22.4 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Daniel Weiße --- .github/workflows/build-ccm-gcp.yml | 2 +- .../workflows/build-os-image-scheduled.yml | 2 +- .github/workflows/codeql.yml | 2 +- .github/workflows/release.yml | 2 +- .github/workflows/test-operator-codegen.yml | 2 +- MODULE.bazel | 2 +- MODULE.bazel.lock | 4 ++-- dev-docs/workflows/bump-go-version.md | 21 ++++++++++++++++++- 8 files changed, 28 insertions(+), 9 deletions(-) diff --git a/.github/workflows/build-ccm-gcp.yml b/.github/workflows/build-ccm-gcp.yml index ed60a4fdc..5a4633fe0 100644 --- a/.github/workflows/build-ccm-gcp.yml +++ b/.github/workflows/build-ccm-gcp.yml @@ -31,7 +31,7 @@ jobs: - name: Setup Go environment uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5.0.1 with: - go-version: "1.22.3" + go-version: "1.22.4" cache: false - name: Install Crane diff --git a/.github/workflows/build-os-image-scheduled.yml b/.github/workflows/build-os-image-scheduled.yml index 4a4c42809..553956564 100644 --- a/.github/workflows/build-os-image-scheduled.yml +++ b/.github/workflows/build-os-image-scheduled.yml @@ -69,7 +69,7 @@ jobs: - name: Setup Go environment uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5.0.1 with: - go-version: "1.22.3" + go-version: "1.22.4" cache: false - name: Determine version diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 902518009..b394d4a21 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -40,7 +40,7 @@ jobs: if: matrix.language == 'go' uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5.0.1 with: - go-version: "1.22.3" + go-version: "1.22.4" cache: false - name: Initialize CodeQL diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b01d34685..45ee106f5 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -233,7 +233,7 @@ jobs: - name: Setup Go environment uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5.0.1 with: - go-version: "1.22.3" + go-version: "1.22.4" cache: true - name: Build generateMeasurements tool diff --git a/.github/workflows/test-operator-codegen.yml b/.github/workflows/test-operator-codegen.yml index f51256dcf..1bdbe3d26 100644 --- a/.github/workflows/test-operator-codegen.yml +++ b/.github/workflows/test-operator-codegen.yml @@ -28,7 +28,7 @@ jobs: - name: Setup Go environment uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5.0.1 with: - go-version: "1.22.3" + go-version: "1.22.4" cache: true - name: Run code generation diff --git a/MODULE.bazel b/MODULE.bazel index cc39b3011..bb3acbd27 100644 --- a/MODULE.bazel +++ b/MODULE.bazel @@ -24,7 +24,7 @@ go_sdk = use_extension("@io_bazel_rules_go//go:extensions.bzl", "go_sdk") go_sdk.download( name = "go_sdk", patches = ["//3rdparty/bazel/org_golang:go_tls_max_handshake_size.patch"], - version = "1.22.3", + version = "1.22.4", ) # the use_repo rule needs to list all top-level go dependencies diff --git a/MODULE.bazel.lock b/MODULE.bazel.lock index 49d5e9e2d..3427ceca2 100644 --- a/MODULE.bazel.lock +++ b/MODULE.bazel.lock @@ -1,6 +1,6 @@ { "lockFileVersion": 6, - "moduleFileHash": "b92386d1cc50b1a882bf3f0701bbff7fa7fb0116f653fe2773066016cb07ca71", + "moduleFileHash": "69841d218742190dc3a3ae4ccb22541216c1297d9657a24ec500b256a5d2b63a", "flags": { "cmdRegistries": [ "https://bcr.bazel.build/" @@ -43,7 +43,7 @@ "patches": [ "//3rdparty/bazel/org_golang:go_tls_max_handshake_size.patch" ], - "version": "1.22.3" + "version": "1.22.4" }, "devDependency": false, "location": { diff --git a/dev-docs/workflows/bump-go-version.md b/dev-docs/workflows/bump-go-version.md index 6416b4db0..d0e259700 100644 --- a/dev-docs/workflows/bump-go-version.md +++ b/dev-docs/workflows/bump-go-version.md @@ -4,7 +4,7 @@ ## Steps -Replace "1.xx.x" with the new version in [MODULE.bazel](/MODULE.bazel): +Replace `"1.xx.x"` with the new version in [MODULE.bazel](/MODULE.bazel): ```starlark go_sdk = use_extension("@io_bazel_rules_go//go:extensions.bzl", "go_sdk") @@ -16,3 +16,22 @@ go_sdk.download( ) ``` + +Replace `go-version: "1.xx.x"` with the new version in all GitHub actions and workflows. +You can use the following command to find replace all instances of `go-version: "1.xx.x"` in the `.github` directory: + +```bash +OLD_VERSION="1.xx.x" +NEW_VERSION="1.xx.y" +find .github -type f -exec sed -i "s/go-version: \"${OLD_VERSION}\"/go-version: \"${NEW_VERSION}\"/g" {} \; +``` + +Or manually: + +```yaml +- name: Setup Go environment + uses: actions/setup-go@v5 + with: + go-version: "1.xx.x" <--- Replace this one + ~~~~~~~~ +```