From e2d562e6b0a039beb50c169f49ff2a60075646b8 Mon Sep 17 00:00:00 2001 From: kun zhou Date: Tue, 23 Apr 2024 11:02:45 -0700 Subject: [PATCH 1/3] update golang version to 1.22 in go.mod --- go.mod | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/go.mod b/go.mod index b80b47b3be45..4969f1a77c5c 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module sigs.k8s.io/cluster-api -go 1.21 +go 1.22 require ( github.com/MakeNowJust/heredoc v1.0.0 From 0859331c0867cd3921fa675582acaf95c560bd11 Mon Sep 17 00:00:00 2001 From: kun zhou Date: Tue, 23 Apr 2024 16:32:50 -0700 Subject: [PATCH 2/3] set additional github workflow to debug golang --- .github/workflows/spectro-release.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/spectro-release.yaml b/.github/workflows/spectro-release.yaml index c7de22f43d2d..23da18ca06c4 100644 --- a/.github/workflows/spectro-release.yaml +++ b/.github/workflows/spectro-release.yaml @@ -41,6 +41,10 @@ jobs: echo "FIPS_REGISTRY=gcr.io/spectro-dev-public/release-fips/cluster-api" >> $GITHUB_ENV - uses: actions/checkout@v3 + - + uses: actions/setup-go@v5 + with: + go-version-file: 'go.mod' - name: Set up Docker Buildx uses: docker/setup-buildx-action@v1 From 9f15aa8f910eafa52a3e217f0242404a41e887c4 Mon Sep 17 00:00:00 2001 From: kun zhou Date: Tue, 23 Apr 2024 22:30:41 -0700 Subject: [PATCH 3/3] undo adding extra gtihub workflow for having go 1.22 and add toolchain in go.mod --- .github/workflows/spectro-release.yaml | 4 ---- go.mod | 2 ++ 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/spectro-release.yaml b/.github/workflows/spectro-release.yaml index 23da18ca06c4..c7de22f43d2d 100644 --- a/.github/workflows/spectro-release.yaml +++ b/.github/workflows/spectro-release.yaml @@ -41,10 +41,6 @@ jobs: echo "FIPS_REGISTRY=gcr.io/spectro-dev-public/release-fips/cluster-api" >> $GITHUB_ENV - uses: actions/checkout@v3 - - - uses: actions/setup-go@v5 - with: - go-version-file: 'go.mod' - name: Set up Docker Buildx uses: docker/setup-buildx-action@v1 diff --git a/go.mod b/go.mod index 4969f1a77c5c..59358d05ff3e 100644 --- a/go.mod +++ b/go.mod @@ -2,6 +2,8 @@ module sigs.k8s.io/cluster-api go 1.22 +toolchain go1.22.2 + require ( github.com/MakeNowJust/heredoc v1.0.0 github.com/Masterminds/sprig/v3 v3.2.3