fix: pin golangci-lint v2 by commit SHA, remove unused nolint directives
Some checks failed
check / check (push) Has been cancelled
Some checks failed
check / check (push) Has been cancelled
- Fix golangci-lint import path to v2/cmd/golangci-lint - Pin to v2.8.0 commit SHA (e2e40021c9007020676c93680a36e3ab06c6cd33) - Use CGO_ENABLED=0 for golangci-lint install - Remove unused //nolint:gosec directives flagged by nolintlint
This commit is contained in:
@@ -10,7 +10,8 @@ RUN go mod download
|
||||
COPY . .
|
||||
|
||||
# Run all checks — build fails if branch is not green
|
||||
RUN go install github.com/golangci/golangci-lint/cmd/golangci-lint@v2.1.6
|
||||
# golangci-lint v2.8.0
|
||||
RUN CGO_ENABLED=0 go install github.com/golangci/golangci-lint/v2/cmd/golangci-lint@e2e40021c9007020676c93680a36e3ab06c6cd33
|
||||
RUN make check
|
||||
|
||||
ARG VERSION=dev
|
||||
|
||||
Reference in New Issue
Block a user