Skip to content

Commit 6514409

Browse files
committed
ci: Fix go 1.22 caching
switch off of `go-version-file` in the Github Actions, because it doesn't work great with the new `go mod tidy` format that go 1.22 does. See: * [Improve toolchain handling actions/setup-go#460](actions/setup-go#460) * [More specific handling/detection of Go toolchain versions actions/setup-go#457](actions/setup-go#457)
1 parent 5db4cca commit 6514409

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.github/workflows/build.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ jobs:
1010
- uses: actions/checkout@v4
1111
- uses: actions/setup-go@v5
1212
with:
13-
go-version-file: go.mod
13+
# go-version-file: go.mod
14+
go-version: "1.22"
1415
- name: Run tests
1516
run: make test-ci

.github/workflows/release.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ jobs:
2424

2525
- uses: actions/setup-go@v5
2626
with:
27-
go-version-file: go.mod
27+
# go-version-file: go.mod
28+
go-version: "1.22"
2829
if: ${{ steps.release.outputs.release_created }}
2930

3031
- name: Run GoReleaser

0 commit comments

Comments
 (0)