Skip to content

Commit

Permalink
Removing duplicate fix target (#201)
Browse files Browse the repository at this point in the history
Signed-off-by: jesus m. rodriguez <jmrodri@gmail.com>
  • Loading branch information
jmrodri authored Oct 14, 2022
1 parent 001e6c7 commit 8d2cd17
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8d2cd17

Please sign in to comment.