mirror of
https://github.com/go-gitea/gitea
synced 2024-12-22 08:27:52 +01:00
Include go.mod in gomod-check and rename to tidy-check (#21025)
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
This commit is contained in:
parent
6b7bb419ed
commit
b7a4b45ff8
8
Makefile
8
Makefile
@ -311,7 +311,7 @@ checks: checks-frontend checks-backend
|
|||||||
checks-frontend: lockfile-check svg-check
|
checks-frontend: lockfile-check svg-check
|
||||||
|
|
||||||
.PHONY: checks-backend
|
.PHONY: checks-backend
|
||||||
checks-backend: gomod-check swagger-check swagger-validate
|
checks-backend: tidy-check swagger-check swagger-validate
|
||||||
|
|
||||||
.PHONY: lint
|
.PHONY: lint
|
||||||
lint: lint-frontend lint-backend
|
lint: lint-frontend lint-backend
|
||||||
@ -388,9 +388,9 @@ tidy:
|
|||||||
vendor: tidy
|
vendor: tidy
|
||||||
$(GO) mod vendor
|
$(GO) mod vendor
|
||||||
|
|
||||||
.PHONY: gomod-check
|
.PHONY: tidy-check
|
||||||
gomod-check: tidy
|
tidy-check: tidy
|
||||||
@diff=$$(git diff go.sum); \
|
@diff=$$(git diff go.mod go.sum); \
|
||||||
if [ -n "$$diff" ]; then \
|
if [ -n "$$diff" ]; then \
|
||||||
echo "Please run 'make tidy' and commit the result:"; \
|
echo "Please run 'make tidy' and commit the result:"; \
|
||||||
echo "$${diff}"; \
|
echo "$${diff}"; \
|
||||||
|
Loading…
Reference in New Issue
Block a user