Skip to content

Commit b7a4b45

Browse files
Include go.mod in gomod-check and rename to tidy-check (#21025)
Co-authored-by: techknowlogick <[email protected]>
1 parent 6b7bb41 commit b7a4b45

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ checks: checks-frontend checks-backend
311311
checks-frontend: lockfile-check svg-check
312312

313313
.PHONY: checks-backend
314-
checks-backend: gomod-check swagger-check swagger-validate
314+
checks-backend: tidy-check swagger-check swagger-validate
315315

316316
.PHONY: lint
317317
lint: lint-frontend lint-backend
@@ -388,9 +388,9 @@ tidy:
388388
vendor: tidy
389389
$(GO) mod vendor
390390

391-
.PHONY: gomod-check
392-
gomod-check: tidy
393-
@diff=$$(git diff go.sum); \
391+
.PHONY: tidy-check
392+
tidy-check: tidy
393+
@diff=$$(git diff go.mod go.sum); \
394394
if [ -n "$$diff" ]; then \
395395
echo "Please run 'make tidy' and commit the result:"; \
396396
echo "$${diff}"; \

0 commit comments

Comments
 (0)