aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorsilverwind2022-09-02 03:58:09 +0200
committerGitHub2022-09-02 09:58:09 +0800
commitb7a4b45ff83dc19febcfb85279215ea6bd224033 (patch)
tree69024e86d2d5731686ca95feda35200be709fd48 /Makefile
parent6b7bb419edd3f718e4a7b4fcdde04957b0a0aa91 (diff)
Include go.mod in gomod-check and rename to tidy-check (#21025)
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 4 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 9e0c29f2b..03b5bd505 100644
--- a/Makefile
+++ b/Makefile
@@ -311,7 +311,7 @@ checks: checks-frontend checks-backend
checks-frontend: lockfile-check svg-check
.PHONY: checks-backend
-checks-backend: gomod-check swagger-check swagger-validate
+checks-backend: tidy-check swagger-check swagger-validate
.PHONY: lint
lint: lint-frontend lint-backend
@@ -388,9 +388,9 @@ tidy:
vendor: tidy
$(GO) mod vendor
-.PHONY: gomod-check
-gomod-check: tidy
- @diff=$$(git diff go.sum); \
+.PHONY: tidy-check
+tidy-check: tidy
+ @diff=$$(git diff go.mod go.sum); \
if [ -n "$$diff" ]; then \
echo "Please run 'make tidy' and commit the result:"; \
echo "$${diff}"; \