add modules & verify-modules make targets
Signed-off-by: Steve Kriss <krisss@vmware.com>pull/2214/head
parent
34e1f1e152
commit
17d7ea7876
12
Makefile
12
Makefile
|
@ -226,7 +226,17 @@ clean:
|
|||
rm -rf .go _output
|
||||
docker rmi $(BUILDER_IMAGE)
|
||||
|
||||
ci: all verify test
|
||||
.PHONY: modules
|
||||
modules:
|
||||
go mod tidy
|
||||
|
||||
.PHONY: verify-modules
|
||||
verify-modules: modules
|
||||
@if !(git diff --quiet HEAD -- go.sum go.mod); then \
|
||||
echo "go module files are out of date, please commit the changes to go.mod and go.sum"; exit 1; \
|
||||
fi
|
||||
|
||||
ci: verify-modules verify all test
|
||||
|
||||
changelog:
|
||||
hack/changelog.sh
|
||||
|
|
Loading…
Reference in New Issue