From 8159ae62ead20a3fcb0dc50ff9b583ea44fef2bf Mon Sep 17 00:00:00 2001 From: Matt Fellows <53900+mefellows@users.noreply.github.com> Date: Thu, 8 Feb 2024 21:30:07 +1100 Subject: [PATCH] chore: set correct go version in goreleaser 1.20 was being interpreted by setup-go as 1.2 which predates go modules, causing build failures (e.g. https://github.com/pact-foundation/pact-go/actions/runs/7828170198/job/21357470816) --- .github/workflows/release.yml | 4 ++-- .goreleaser.yml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7af64e5bf..2c7e02888 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -19,12 +19,12 @@ jobs: name: Set up Go uses: actions/setup-go@v5 with: - go-version: 1.20 + go-version: 1.22.0 - name: Run GoReleaser uses: goreleaser/goreleaser-action@v5 with: version: latest - args: release --rm-dist + args: release --clean env: GITHUB_TOKEN: ${{ secrets.GITHUBRELEASETOKEN }} \ No newline at end of file diff --git a/.goreleaser.yml b/.goreleaser.yml index 38294adfe..768b80d2c 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -3,7 +3,7 @@ before: hooks: # You may remove this if you don't use go modules. - - go mod tidy + - go mod download builds: - env: - CGO_ENABLED=0