Skip to content

Commit

Permalink
ci: Fix go 1.22 caching (#289)
Browse files Browse the repository at this point in the history
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)
  • Loading branch information
vincenthsh committed Apr 24, 2024
1 parent 5db4cca commit 66b41bd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/build.yml
Expand Up @@ -10,6 +10,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: go.mod
# go-version-file: go.mod
go-version: "1.22"
- name: Run tests
run: make test-ci
3 changes: 2 additions & 1 deletion .github/workflows/release.yml
Expand Up @@ -24,7 +24,8 @@ jobs:

- uses: actions/setup-go@v5
with:
go-version-file: go.mod
# go-version-file: go.mod
go-version: "1.22"
if: ${{ steps.release.outputs.release_created }}

- name: Run GoReleaser
Expand Down

0 comments on commit 66b41bd

Please sign in to comment.