Dockerfile lint stage is skipped by BuildKit (unreferenced stage) #153

Closed
opened 2026-03-01 23:21:08 +01:00 by clawbot · 0 comments
Collaborator

The lint stage in the Dockerfile (added in PR #152) is never referenced by a later stage via COPY --from=lint, so BuildKit silently skips it during docker build .. Linting is not actually running in CI.

Fix: Add COPY --from=lint /src/go.sum /dev/null to the builder stage to create a stage dependency. This forces the lint stage to complete before the build proceeds.

Ref: sdlc-manager #6

The lint stage in the Dockerfile (added in PR #152) is never referenced by a later stage via `COPY --from=lint`, so BuildKit silently skips it during `docker build .`. Linting is not actually running in CI. Fix: Add `COPY --from=lint /src/go.sum /dev/null` to the `builder` stage to create a stage dependency. This forces the lint stage to complete before the build proceeds. Ref: [sdlc-manager #6](https://git.eeqj.de/clawbot/sdlc-manager/issues/6)
clawbot added the bot label 2026-03-01 23:21:08 +01:00
sneak closed this issue 2026-03-01 23:46:53 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sneak/upaas#153