feat: split Dockerfile into dedicated lint stage #31
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#31
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "fix/29-split-dockerfile"
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
Split the Dockerfile into a dedicated lint stage using the pre-built
golangci/golangci-lint:v2.1.6image, so lint and formatting failures surface much faster without downloading golangci-lint on every build.Changes
golangci/golangci-lint:v2.1.6(pinned by sha256) to runmake fmt-checkandmake lintgolang:1.24-alpine(pinned by sha256) runsmake testand builds bothchatdandchat-clibinariesCOPY --from=lint /src/go.sum /dev/nullcreates BuildKit stage dependency to ensure lint always runsCloses #29
Closing — the referenced issue #30 was already closed.
Pull request closed