Skip to content

Commit

Permalink
chore: set correct go version in goreleaser
Browse files Browse the repository at this point in the history
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)
  • Loading branch information
mefellows committed Feb 8, 2024
1 parent 18e126d commit 8159ae6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
2 changes: 1 addition & 1 deletion .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8159ae6

Please sign in to comment.