We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 070467f commit f74b0d6Copy full SHA for f74b0d6
Makefile
@@ -76,12 +76,20 @@ test: ## Run the test.sh script which will check all.
76
TRACE=1 ./test.sh
77
78
test-all:
79
+ $(MAKE) verify-modules
80
$(MAKE) test
81
82
.PHONY: modules
83
modules: ## Runs go mod to ensure modules are up to date.
84
go mod tidy
85
86
+.PHONY: verify-modules
87
+verify-modules: modules ## Verify go modules are up to date
88
+ @if !(git diff --quiet HEAD -- go.sum go.mod); then \
89
+ git diff; \
90
+ echo "go module files are out of date, please run 'make modules'"; exit 1; \
91
+ fi
92
+
93
## --------------------------------------
94
## Cleanup / Verification
95
0 commit comments