Skip to content

Commit 8159ae6

Browse files
committed
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)
1 parent 18e126d commit 8159ae6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/workflows/release.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@ jobs:
1919
name: Set up Go
2020
uses: actions/setup-go@v5
2121
with:
22-
go-version: 1.20
22+
go-version: 1.22.0
2323
-
2424
name: Run GoReleaser
2525
uses: goreleaser/goreleaser-action@v5
2626
with:
2727
version: latest
28-
args: release --rm-dist
28+
args: release --clean
2929
env:
3030
GITHUB_TOKEN: ${{ secrets.GITHUBRELEASETOKEN }}

.goreleaser.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
before:
44
hooks:
55
# You may remove this if you don't use go modules.
6-
- go mod tidy
6+
- go mod download
77
builds:
88
- env:
99
- CGO_ENABLED=0

0 commit comments

Comments
 (0)