summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile11
1 files changed, 6 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index cb4304b812..342366492c 100644
--- a/Makefile
+++ b/Makefile
@@ -295,7 +295,7 @@ checks: checks-frontend checks-backend
checks-frontend: lockfile-check svg-check
.PHONY: checks-backend
-checks-backend: swagger-check swagger-validate
+checks-backend: gomod-check swagger-check swagger-validate
.PHONY: lint
lint: lint-frontend lint-backend
@@ -369,11 +369,12 @@ unit-test-coverage:
vendor:
$(GO) mod tidy && $(GO) mod vendor
-.PHONY: test-vendor
-test-vendor: vendor
- @diff=$$(git diff vendor/); \
+.PHONY: gomod-check
+gomod-check:
+ @$(GO) mod tidy
+ @diff=$$(git diff go.sum); \
if [ -n "$$diff" ]; then \
- echo "Please run 'make vendor' and commit the result:"; \
+ echo "Please run '$(GO) mod tidy' and commit the result:"; \
echo "$${diff}"; \
exit 1; \
fi