Skip to content

Commit

Permalink
Change linter install process
Browse files Browse the repository at this point in the history
Signed-off-by: William Douglas <[email protected]>
  • Loading branch information
bryteise committed Jan 26, 2024
1 parent 7beb5a3 commit 4f56e53
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ checkcoverage:

.PHONY: lint
lint:
@if ! $(gopath)/bin/golangci-lint --version &>/dev/null; then \
if ! $(gopath)/bin/golangci-lint --version &>/dev/null; then \
echo "Installing linters..."; \
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(gopath)/bin v1.55.2; \
go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.55.2; \
fi
@$(gopath)/bin/golangci-lint run --deadline=10m --tests --disable-all \
--enable=misspell \
Expand Down

0 comments on commit 4f56e53

Please sign in to comment.