Skip to content

Commit 8d2cd17

Browse files
authored
Removing duplicate fix target (#201)
Signed-off-by: jesus m. rodriguez <[email protected]>
1 parent 001e6c7 commit 8d2cd17

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

Makefile

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -59,23 +59,19 @@ test-sanity: generate fix lint ## Test repo formatting, linting, etc.
5959
build:
6060
CGO_ENABLED=0 mkdir -p $(BUILD_DIR) && go build $(GO_BUILD_ARGS) -o $(BUILD_DIR) ./
6161

62-
# Run go fmt and go mod tidy, and check for clean git tree
63-
.PHONY: fix
64-
fix:
65-
go mod tidy
66-
go fmt ./...
67-
git diff --exit-code
62+
.PHONY: setup-lint
63+
setup-lint: ## Setup the lint
64+
fetch golangci-lint 1.45.2
6865

6966
# Run various checks against code
7067
.PHONY: lint
71-
lint:
72-
fetch golangci-lint 1.45.2 && golangci-lint run
68+
lint: setup-lint
69+
golangci-lint run
7370

7471
.PHONY: fix
75-
fix: ## Fixup files in the repo.
72+
fix: setup-lint ## Fixup files in the repo.
7673
go mod tidy
7774
go fmt ./...
78-
make lint
7975
golangci-lint run --fix
8076

8177
.PHONY: release

0 commit comments

Comments
 (0)