From 94639a47e97254c817e9e08c60b0092f5e4e7abd Mon Sep 17 00:00:00 2001 From: clawbot Date: Sun, 1 Mar 2026 23:46:52 +0100 Subject: [PATCH] fix: add COPY --from=lint to builder stage to force lint execution (#154) BuildKit skips unreferenced stages silently. The lint stage (added in PR [#152](https://git.eeqj.de/sneak/upaas/pulls/152)) was never referenced by the builder stage via `COPY --from`, so it was being skipped entirely during `docker build .`. Linting was not actually running in CI. This adds `COPY --from=lint /src/go.sum /dev/null` to the builder stage, creating a stage dependency that forces the lint stage to complete before the build proceeds. Verified: `docker build .` now runs the lint stage (fmt-check + lint) and passes. closes https://git.eeqj.de/sneak/upaas/issues/153 Co-authored-by: clawbot Reviewed-on: https://git.eeqj.de/sneak/upaas/pulls/154 Co-authored-by: clawbot Co-committed-by: clawbot --- Dockerfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Dockerfile b/Dockerfile index 0b1f175..e05b8c6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -15,6 +15,9 @@ RUN make lint # golang:1.25-alpine FROM golang@sha256:f6751d823c26342f9506c03797d2527668d095b0a15f1862cddb4d927a7a4ced AS builder +# Force BuildKit to run the lint stage by creating a stage dependency +COPY --from=lint /src/go.sum /dev/null + RUN apk add --no-cache git make gcc musl-dev WORKDIR /src