Skip to content

Commit

Permalink
Makefile: Specify golangci-lint version
Browse files Browse the repository at this point in the history
  • Loading branch information
ish-hcc authored Aug 21, 2024
1 parent f7330cc commit 2b3da23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ dependency: ## Get dependencies
lint: dependency ## Lint the files
@echo "Running linter..."
@if [ ! -f "$(GOPATH)/bin/golangci-lint" ] && [ ! -f "$(shell go env GOROOT)/bin/golangci-lint" ]; then \
$(GO) install github.com/golangci/golangci-lint/cmd/golangci-lint@latest; \
$(GO) install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.60.2; \
fi
@golangci-lint run -E contextcheck -D unused
@echo "Linter finished!"
Expand Down

0 comments on commit 2b3da23

Please sign in to comment.