diff --git a/Makefile b/Makefile index 8a24846df..45ecabafc 100644 --- a/Makefile +++ b/Makefile @@ -409,17 +409,7 @@ vet: go vet ./lib/... go vet ./app/... -# Set variables by using target specific variables to avoid running git diff for each make execution -# See: https://www.gnu.org/software/make/manual/html_node/Target_002dspecific.html -goimports: GO_CHANGED_FILES+=$(shell git diff --name-only --diff-filter=ACMR HEAD -- 'lib/*.go') -goimports: GO_CHANGED_FILES+=$(shell git diff --name-only --diff-filter=ACMR HEAD -- 'app/*.go') -goimports: install-goimports - # GO_CHANGED_FILES will contain a single space if there are no changed files - if [ "$(GO_CHANGED_FILES)" != " " ]; then \ - goimports -local github.com/VictoriaMetrics/VictoriaMetrics -w $(GO_CHANGED_FILES); \ - fi - -check-all: fmt goimports vet golangci-lint govulncheck +check-all: fmt vet golangci-lint govulncheck test: go test ./lib/... ./app/... @@ -484,9 +474,6 @@ install-govulncheck: install-wwhrd: which wwhrd || go install github.com/frapposelli/wwhrd@latest -install-goimports: - which goimports || go install golang.org/x/tools/cmd/goimports@latest - check-licenses: install-wwhrd wwhrd check -f .wwhrd.yml