Dockerfile lint stage is skipped by BuildKit (unreferenced stage) #153
Reference in New Issue
Block a user
Delete Branch "%!s()"
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?
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 duringdocker build .. Linting is not actually running in CI.Fix: Add
COPY --from=lint /src/go.sum /dev/nullto thebuilderstage to create a stage dependency. This forces the lint stage to complete before the build proceeds.Ref: sdlc-manager #6