Skip to content
This repository was archived by the owner on Jul 19, 2023. It is now read-only.

Commit 1e6b160

Browse files
committed
Add hook to verify goreleaser is using appropriate go verison
1 parent 90ecd84 commit 1e6b160

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.goreleaser.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
project_name: phlare
2-
# before:
3-
# hooks:
4-
# - make go/mod lint generate go/test
2+
before:
3+
hooks:
4+
# This hook ensures that goreleaser uses the correct go version for a Phlare release
5+
- sh -euc "go version | grep "go version go1.19.4 " || { echo "Unexpected go version"; exit 1; }"
56
builds:
67
- env:
78
- CGO_ENABLED=0

0 commit comments

Comments
 (0)