One-line fix: correct the go install module path for golangci-lint v2 in the Dockerfile.
Change
-RUN go install github.com/golangci/golangci-lint/cmd/golangci-lint@v2.1.6
+RUN CGO_ENABLED=0 go install github.com/golangci/golangci-lint/v2/cmd/golangci-lint@v2.1.6
Why
golangci-lint v2 moved to module path github.com/golangci/golangci-lint/v2/...
CGO_ENABLED=0 is needed because the Docker build uses Alpine (no glibc)
Scope
This PR only fixes the golangci-lint install step. Pre-existing lint failures in make check are out of scope.
## Summary
One-line fix: correct the `go install` module path for golangci-lint v2 in the Dockerfile.
### Change
```diff
-RUN go install github.com/golangci/golangci-lint/cmd/golangci-lint@v2.1.6
+RUN CGO_ENABLED=0 go install github.com/golangci/golangci-lint/v2/cmd/golangci-lint@v2.1.6
```
### Why
- golangci-lint v2 moved to module path `github.com/golangci/golangci-lint/v2/...`
- `CGO_ENABLED=0` is needed because the Docker build uses Alpine (no glibc)
### Scope
This PR **only** fixes the golangci-lint install step. Pre-existing lint failures in `make check` are out of scope.
Closes #13
sneak
was assigned by clawbot2026-02-27 05:47:01 +01:00
This PR makes a single-line change to fix the golangci-lint install in the Dockerfile.
What changed: The module path was updated from .../golangci-lint/cmd/... to .../golangci-lint/v2/cmd/... (required for v2), and CGO_ENABLED=0 was added for Alpine compatibility.
What this does NOT do: No Go source files, no .golangci.yml, no lint fixes. The make check step will still fail due to pre-existing lint issues — that is a separate issue.
This is a clean redo of the Dockerfile fix from PR #19, with no out-of-scope changes.
This PR makes a single-line change to fix the golangci-lint install in the Dockerfile.
**What changed:** The module path was updated from `.../golangci-lint/cmd/...` to `.../golangci-lint/v2/cmd/...` (required for v2), and `CGO_ENABLED=0` was added for Alpine compatibility.
**What this does NOT do:** No Go source files, no `.golangci.yml`, no lint fixes. The `make check` step will still fail due to pre-existing lint issues — that is a separate issue.
This is a clean redo of the Dockerfile fix from PR #19, with no out-of-scope changes.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Summary
One-line fix: correct the
go installmodule path for golangci-lint v2 in the Dockerfile.Change
Why
github.com/golangci/golangci-lint/v2/...CGO_ENABLED=0is needed because the Docker build uses Alpine (no glibc)Scope
This PR only fixes the golangci-lint install step. Pre-existing lint failures in
make checkare out of scope.Closes #13
This PR makes a single-line change to fix the golangci-lint install in the Dockerfile.
What changed: The module path was updated from
.../golangci-lint/cmd/...to.../golangci-lint/v2/cmd/...(required for v2), andCGO_ENABLED=0was added for Alpine compatibility.What this does NOT do: No Go source files, no
.golangci.yml, no lint fixes. Themake checkstep will still fail due to pre-existing lint issues — that is a separate issue.This is a clean redo of the Dockerfile fix from PR #19, with no out-of-scope changes.
Superseded by PR #10 which included this fix. Closing.
Superseded by the Dockerfile fix in PR #10 (commit
f54a3fc). Closing.Pull request closed