mirror of
https://github.com/vmware-tanzu/velero.git
synced 2026-05-01 21:05:46 +00:00
add modules & verify-modules make targets
Signed-off-by: Steve Kriss <krisss@vmware.com>
This commit is contained in:
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
|
||||
|
||||
Reference in New Issue
Block a user