Skip to content

Commit

Permalink
Makefile: check if the vendor has no diffs (#731)
Browse files Browse the repository at this point in the history
#684 shows that if the vendor and the
vendor generated by the tidy&vendor pipeline has diffs, we don't fail in
the CI, but we should. This PR adds the check to the Makefile.

---------

Co-authored-by: Deniz Surmeli <[email protected]>
  • Loading branch information
denizsurmeli and Deniz Surmeli authored Jul 4, 2024
1 parent 1a5e546 commit f79ed0b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
default: all

.PHONY: all
all: clean build test check
all: clean build test check checkgomod

VERSION := `git describe --abbrev=0 --tags || echo "0.0.0"`
BUILD := `git rev-parse --short HEAD`
Expand Down Expand Up @@ -61,4 +61,9 @@ gogenerate:
clean:
@rm -f ./s5cmd

.PHONY: checkgomod
checkgomod: ## Check go.mod file
@go mod tidy
@git diff --exit-code -- go.sum go.mod

.NOTPARALLEL:

0 comments on commit f79ed0b

Please sign in to comment.