Skip to content

Commit

Permalink
control in makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
zelihacagip committed Dec 19, 2024
1 parent 452f124 commit 565b084
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 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
6 changes: 0 additions & 6 deletions hack/goreleaser-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,6 @@ export TAR_FILE
"$RELEASES_URL/download/$VERSION/${FILE_BASENAME}_$(uname -s)_${goreleaser_arch}.tar.gz"
cd "$TMPDIR"
curl -sfLo "checksums.txt" "$RELEASES_URL/download/$VERSION/checksums.txt"
# Check if sha256sum is installed
if ! command -v sha256sum &> /dev/null
then
echo "sha256sum could not be found"
exit 1
fi
echo "Verifying checksums..."
sha256sum --ignore-missing --quiet --check checksums.txt
)
Expand Down

0 comments on commit 565b084

Please sign in to comment.