Include 'go mod tidy' into 'make' and 'make tidy' (#2298)

Apparently, it's not part of golangci-lint, so you can send PRs that
fail this check on CI.
This commit is contained in:
Denis Bilenko 2025-02-05 15:58:29 +01:00 committed by GitHub
parent 27caf413f2
commit e0903fbd37
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 6 additions and 2 deletions

View File

@ -1,4 +1,4 @@
default: vendor fmt lint
default: vendor fmt lint tidy
PACKAGES=./acceptance/... ./libs/... ./internal/... ./cmd/... ./bundle/... .
@ -9,6 +9,10 @@ GOTESTSUM_CMD ?= gotestsum --format ${GOTESTSUM_FORMAT} --no-summary=skipped
lint:
golangci-lint run --fix
tidy:
# not part of golangci-lint, apparently
go mod tidy
lintcheck:
golangci-lint run ./...
@ -59,4 +63,4 @@ integration: vendor
integration-short: vendor
$(INTEGRATION) -short
.PHONY: lint lintcheck fmt test cover showcover build snapshot vendor schema integration integration-short acc-cover acc-showcover docs
.PHONY: lint tidy lintcheck fmt test cover showcover build snapshot vendor schema integration integration-short acc-cover acc-showcover docs