Skip to content

Commit 8ca212c

Browse files
committed
Fixing lint recipe
Signed-off-by: Ricardo Zanini <[email protected]>
1 parent 108dc27 commit 8ca212c

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

Makefile

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,14 @@ goimports:
1111
@goimports -w .
1212

1313
lint:
14-
@echo "🚀 Running lint..."
15-
@command -v golangci-lint > /dev/null || (echo "🚀 Installing golangci-lint..."; curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b "${GOPATH}/bin")
14+
@echo "🚀 Installing/updating golangci-lint…"
15+
GO111MODULE=on go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest
16+
17+
@echo "🚀 Running lint…"
1618
@make addheaders
1719
@make goimports
1820
@make fmt
19-
@./hack/go-lint.sh ${params}
21+
@$(GOPATH)/bin/golangci-lint run ./... ${params}
2022
@echo "✅ Linting completed!"
2123

2224
.PHONY: test

0 commit comments

Comments
 (0)