fix: add COPY --from=lint to builder stage to force lint execution #154

Merged
sneak merged 1 commits from fix/issue-153-lint-stage-dependency into main 2026-03-01 23:46:52 +01:00

View File

@@ -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