dependencies: bump Go to v1.23.5 (#3599)

Signed-off-by: Daniel Weiße <dw@edgeless.systems>
This commit is contained in:
Daniel Weiße 2025-01-20 11:53:55 +01:00 committed by GitHub
parent 40754753a2
commit 53e937522f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
11 changed files with 14 additions and 12 deletions

View File

@ -31,7 +31,7 @@ jobs:
- name: Setup Go environment - name: Setup Go environment
uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # v5.2.0 uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # v5.2.0
with: with:
go-version: "1.23.2" go-version: "1.23.5"
cache: false cache: false
- name: Install Crane - name: Install Crane

View File

@ -67,7 +67,7 @@ jobs:
- name: Setup Go environment - name: Setup Go environment
uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # v5.2.0 uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # v5.2.0
with: with:
go-version: "1.23.2" go-version: "1.23.5"
cache: false cache: false
- name: Determine version - name: Determine version

View File

@ -40,7 +40,7 @@ jobs:
if: matrix.language == 'go' if: matrix.language == 'go'
uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # v5.2.0 uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # v5.2.0
with: with:
go-version: "1.23.2" go-version: "1.23.5"
cache: false cache: false
- name: Initialize CodeQL - name: Initialize CodeQL

View File

@ -257,7 +257,7 @@ jobs:
- name: Setup Go environment - name: Setup Go environment
uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # v5.2.0 uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # v5.2.0
with: with:
go-version: "1.23.2" go-version: "1.23.5"
cache: true cache: true
- name: Build generateMeasurements tool - name: Build generateMeasurements tool

View File

@ -28,7 +28,7 @@ jobs:
- name: Setup Go environment - name: Setup Go environment
uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # v5.2.0 uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # v5.2.0
with: with:
go-version: "1.23.2" go-version: "1.23.5"
cache: true cache: true
- name: Run code generation - name: Run code generation

View File

@ -6,7 +6,7 @@ RUN apt-get update && apt-get install -y \
git git
# Install Go # Install Go
ARG GO_VER=1.22.3 ARG GO_VER=1.23.5
RUN wget -q https://go.dev/dl/go${GO_VER}.linux-amd64.tar.gz && \ RUN wget -q https://go.dev/dl/go${GO_VER}.linux-amd64.tar.gz && \
tar -C /usr/local -xzf go${GO_VER}.linux-amd64.tar.gz && \ tar -C /usr/local -xzf go${GO_VER}.linux-amd64.tar.gz && \
rm go${GO_VER}.linux-amd64.tar.gz rm go${GO_VER}.linux-amd64.tar.gz

View File

@ -22,7 +22,7 @@ go_sdk = use_extension("@io_bazel_rules_go//go:extensions.bzl", "go_sdk")
go_sdk.download( go_sdk.download(
name = "go_sdk", name = "go_sdk",
patches = ["//3rdparty/bazel/org_golang:go_tls_max_handshake_size.patch"], patches = ["//3rdparty/bazel/org_golang:go_tls_max_handshake_size.patch"],
version = "1.23.2", version = "1.23.5",
) )
python = use_extension("@rules_python//python/extensions:python.bzl", "python") python = use_extension("@rules_python//python/extensions:python.bzl", "python")

View File

@ -17,7 +17,7 @@ go_sdk.download(
``` ```
Replace `go-version: "1.xx.x"` with the new version in all GitHub actions and workflows. Replace `go-version: "1.xx.x"` with the new version in all GitHub actions/workflows, our go.mod files and Containerfiles.
You can use the following command to find replace all instances of `go-version: "1.xx.x"` in the `.github` directory: You can use the following command to find replace all instances of `go-version: "1.xx.x"` in the `.github` directory:
```bash ```bash
@ -25,7 +25,9 @@ OLD_VERSION="1.xx.x"
NEW_VERSION="1.xx.y" NEW_VERSION="1.xx.y"
find .github -type f -exec sed -i "s/go-version: \"${OLD_VERSION}\"/go-version: \"${NEW_VERSION}\"/g" {} \; find .github -type f -exec sed -i "s/go-version: \"${OLD_VERSION}\"/go-version: \"${NEW_VERSION}\"/g" {} \;
sed -i "s/go ${OLD_VERSION}/go ${NEW_VERSION}/g" go.mod sed -i "s/go ${OLD_VERSION}/go ${NEW_VERSION}/g" go.mod
sed -i "s/go ${OLD_VERSION}/go ${NEW_VERSION}/g" hack/tools/go.mod
sed -i "s/${OLD_VERSION}/${NEW_VERSION}/g" go.work sed -i "s/${OLD_VERSION}/${NEW_VERSION}/g" go.work
sed -i "s/GO_VER=${OLD_VERSION}/GO_VER=${NEW_VERSION}/g" 3rdparty/gcp-guest-agent/Dockerfile
``` ```
Or manually: Or manually:

2
go.mod
View File

@ -1,6 +1,6 @@
module github.com/edgelesssys/constellation/v2 module github.com/edgelesssys/constellation/v2
go 1.23.2 go 1.23.5
// TODO(daniel-weisse): revert after merging https://github.com/martinjungblut/go-cryptsetup/pull/16. // TODO(daniel-weisse): revert after merging https://github.com/martinjungblut/go-cryptsetup/pull/16.
replace github.com/martinjungblut/go-cryptsetup => github.com/daniel-weisse/go-cryptsetup v0.0.0-20230705150314-d8c07bd1723c replace github.com/martinjungblut/go-cryptsetup => github.com/daniel-weisse/go-cryptsetup v0.0.0-20230705150314-d8c07bd1723c

View File

@ -1,6 +1,6 @@
go 1.23.2 go 1.23.5
toolchain go1.23.2 toolchain go1.23.5
use ( use (
. .

View File

@ -1,6 +1,6 @@
module github.com/edgelesssys/constellation/v2/hack/tools module github.com/edgelesssys/constellation/v2/hack/tools
go 1.23.2 go 1.23.5
require ( require (
github.com/google/go-licenses v1.6.0 github.com/google/go-licenses v1.6.0