fix: correct golangci-lint v2 module path in Dockerfile (closes #13) #20
No reviewers
Labels
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: sneak/chat#20
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "fix/dockerfile-golangci-lint-v2-module-path"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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