Skip to content

Commit 5f80191

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 47719d7 commit 5f80191

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
@@ -47,6 +47,9 @@ jobs:
4747
steps:
4848
- uses: actions/checkout@v4
4949
- uses: actions/setup-go@v4
50+
with:
51+
go-version-file: go.mod
52+
check-latest: true
5053
- run: make -e vendor
5154
- name: Build image
5255
env:

.github/workflows/lib-publish.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,9 @@ jobs:
4444
steps:
4545
- uses: actions/checkout@v4
4646
- uses: actions/setup-go@v4
47+
with:
48+
go-version-file: go.mod
49+
check-latest: true
4750
- run: make -e vendor
4851
- name: Build image
4952
env:

.github/workflows/lib-validate.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,9 @@ jobs:
7676
steps:
7777
- uses: actions/checkout@v4
7878
- uses: actions/setup-go@v4
79+
with:
80+
go-version-file: go.mod
81+
check-latest: true
7982
- name: Install envtest and k8s control plane
8083
run: |
8184
go install sigs.k8s.io/controller-runtime/tools/setup-envtest@latest

0 commit comments

Comments
 (0)