Skip to content

Commit 29b8eb7

Browse files
committed
ci: fix Go version selection
k8s v1.29 depends on Go 1.21.3 or later. Without an explicit go-version-file: go.mod with 'go 1.21.3' we are seeing failures in different CI steps. Make sure all setup-go workflows use Go version from go.mod. Signed-off-by: Mikko Ylinen <[email protected]>
1 parent d295ede commit 29b8eb7

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

.github/workflows/lib-build.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@ jobs:
4242
steps:
4343
- uses: actions/checkout@v4
4444
- uses: actions/setup-go@v4
45+
with:
46+
go-version-file: go.mod
47+
check-latest: true
4548
- run: make -e vendor
4649
- name: Build image
4750
env:

.github/workflows/lib-publish.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ jobs:
4141
steps:
4242
- uses: actions/checkout@v4
4343
- uses: actions/setup-go@v4
44+
with:
45+
go-version-file: go.mod
46+
check-latest: true
4447
- run: make -e vendor
4548
- name: Build image
4649
env:

.github/workflows/lib-validate.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,9 @@ jobs:
7474
steps:
7575
- uses: actions/checkout@v4
7676
- uses: actions/setup-go@v4
77+
with:
78+
go-version-file: go.mod
79+
check-latest: true
7780
- name: Install envtest and k8s control plane
7881
run: |
7982
go install sigs.k8s.io/controller-runtime/tools/setup-envtest@latest

0 commit comments

Comments
 (0)