Skip to content

Commit

Permalink
goreleaser: Refactor git-diff hook (#3943)
Browse files Browse the repository at this point in the history
The git-diff hook implementation prevents us from seeing the failure details.
Simplify so that the git diff output is logged.

Signed-off-by: Jussi Kukkonen <[email protected]>
  • Loading branch information
jku authored Nov 25, 2024
1 parent 6aeb919 commit ecad693
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ env:
before:
hooks:
- go mod tidy
- /bin/bash -c 'if [ -n "$(git --no-pager diff --exit-code go.mod go.sum)" ]; then exit 1; fi'
- git --no-pager diff --exit-code go.mod go.sum

gomod:
proxy: true
Expand Down

0 comments on commit ecad693

Please sign in to comment.