Skip to content

Commit

Permalink
Add fail if sha256sum does not present
Browse files Browse the repository at this point in the history
Without this, there is an incomprehensible error if sha256sum does not present.

This fixes by determining the reason for error sha256sum not present
  • Loading branch information
zelihacagip committed Dec 19, 2024
1 parent 0a51f59 commit fa07618
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ $(HACKDIR):
mkdir -p $(HACKDIR)

bootstrap-tools: $(HACKDIR)
if ! command -v sha256sum &> /dev/null; then echo "sha256sum could not be found"; exit 1; fi
command -v $(HACKDIR)/goreleaser || VERSION=v2.5.0 TMPDIR=$(HACKDIR) bash hack/goreleaser-install.sh
command -v staticcheck || go install honnef.co/go/tools/cmd/staticcheck@latest
chmod +x $(HACKDIR)/goreleaser
Expand Down

0 comments on commit fa07618

Please sign in to comment.