Skip to content

Commit 63b1ace

Browse files
Updated linting is gocilint is not available
1 parent cdea0d2 commit 63b1ace

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,10 @@ test:
5050

5151
## Lint (requires golangci-lint)
5252
lint:
53+
@if ! command -v golangci-lint >/dev/null 2>&1; then \
54+
echo "Installing golangci-lint..."; \
55+
go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest; \
56+
fi
5357
@echo "Linting..."
5458
@golangci-lint run
5559

0 commit comments

Comments
 (0)