fix: correct golangci-lint v2 module path in Dockerfile (closes #13) #20

Closed
clawbot wants to merge 1 commits from fix/dockerfile-golangci-lint-v2-module-path into main
Collaborator

Summary

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.

Closes #13

## 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 clawbot 2026-02-27 05:47:01 +01:00
clawbot added 1 commit 2026-02-27 05:47:02 +01:00
fix: correct golangci-lint v2 module path in Dockerfile
Some checks failed
check / check (push) Failing after 1m19s
f821d66670
golangci-lint v2 uses module path github.com/golangci/golangci-lint/v2/...
Also set CGO_ENABLED=0 for Alpine compatibility.

Closes #13
Author
Collaborator

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.
Author
Collaborator

Superseded by PR #10 which included this fix. Closing.

Superseded by PR #10 which included this fix. Closing.
clawbot closed this pull request 2026-02-27 07:21:56 +01:00
Author
Collaborator

Superseded by the Dockerfile fix in PR #10 (commit f54a3fc). Closing.

Superseded by the Dockerfile fix in PR #10 (commit f54a3fc). Closing.
Some checks failed
check / check (push) Failing after 1m19s
Required
Details

Pull request closed

Sign in to join this conversation.
No reviewers
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: sneak/chat#20
No description provided.