From 5d3e0667de28fa231a1b7297380d355f21bc5b10 Mon Sep 17 00:00:00 2001 From: clawbot Date: Sun, 1 Mar 2026 14:26:12 -0800 Subject: [PATCH] fix: add COPY --from=lint to builder stage to force lint execution BuildKit skips unreferenced stages silently. The lint stage was never referenced by the builder stage via COPY --from, so it was being skipped entirely during docker build. This adds a stage dependency that forces the lint stage to complete before the build proceeds. closes https://git.eeqj.de/sneak/upaas/issues/153 --- 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