From 498d96dc7b86aa4a678efc3b073863ab499e3596 Mon Sep 17 00:00:00 2001 From: Vincent De Smet Date: Wed, 24 Apr 2024 21:26:24 +0700 Subject: [PATCH] ci: Fix go 1.22 caching MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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](https://github.com/actions/setup-go/pull/460) * [More specific handling/detection of Go toolchain versions actions/setup-go#457](https://github.com/actions/setup-go/issues/457) --- .github/workflows/build.yml | 3 ++- .github/workflows/release.yml | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f68859a67..0e0b81ed9 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d655658ef..09a1fe91a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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