Skip to content

Commit

Permalink
fix(operator/lint): install go linter in custom path
Browse files Browse the repository at this point in the history
The new path becomes consistent with the one used by [core]/scheduler and no
longer conflicts with the default go `golangci-lint` path
  • Loading branch information
lc525 committed Sep 10, 2024
1 parent 2774ab5 commit 2841a08
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions operator/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ fmt: ## Run go fmt against code.
vet: ## Run go vet against code.
go vet ./...

.GOLANGCILINT_VERSION := v1.57.2
.GOLANGCILINT_PATH := $(shell go env GOPATH)/bin/golangci-lint/$(.GOLANGCILINT_VERSION)
.GOLANGCILINT_VERSION := v1.59.1
.GOLANGCILINT_PATH := $(shell go env GOPATH)/bin/golangci-lint-versions/$(.GOLANGCILINT_VERSION)

${.GOLANGCILINT_PATH}/golangci-lint:
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh \
Expand Down

0 comments on commit 2841a08

Please sign in to comment.