mirror of https://github.com/databricks/cli.git
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:
parent
27caf413f2
commit
e0903fbd37
8
Makefile
8
Makefile
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue