From 8d2cd17cd7acdb3e0e3655e4664d56a24cc5571f Mon Sep 17 00:00:00 2001 From: Jesus Rodriguez Date: Fri, 14 Oct 2022 16:03:57 -0400 Subject: [PATCH] Removing duplicate fix target (#201) Signed-off-by: jesus m. rodriguez --- Makefile | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/Makefile b/Makefile index ae72f9c1..2bc59417 100644 --- a/Makefile +++ b/Makefile @@ -59,23 +59,19 @@ test-sanity: generate fix lint ## Test repo formatting, linting, etc. build: CGO_ENABLED=0 mkdir -p $(BUILD_DIR) && go build $(GO_BUILD_ARGS) -o $(BUILD_DIR) ./ -# Run go fmt and go mod tidy, and check for clean git tree -.PHONY: fix -fix: - go mod tidy - go fmt ./... - git diff --exit-code +.PHONY: setup-lint +setup-lint: ## Setup the lint + fetch golangci-lint 1.45.2 # Run various checks against code .PHONY: lint -lint: - fetch golangci-lint 1.45.2 && golangci-lint run +lint: setup-lint + golangci-lint run .PHONY: fix -fix: ## Fixup files in the repo. +fix: setup-lint ## Fixup files in the repo. go mod tidy go fmt ./... - make lint golangci-lint run --fix .PHONY: release