Split Dockerfile: pre-built golangci-lint stage for faster CI #45

Merged
sneak merged 1 commits from split-dockerfile-lint-stage into main 2026-03-15 18:56:25 +01:00

1 Commits

Author SHA1 Message Date
clawbot
996875ae29 split Dockerfile into dedicated lint stage for faster CI
Use the golangci/golangci-lint image directly as a lint stage that runs
fmt-check and lint, rather than copying the binary into the builder stage.
BuildKit runs lint and test stages in parallel, so formatting and lint
failures surface much faster.

The COPY --from=lint dependency ensures BuildKit always executes the lint
stage (without it, unused stages are silently skipped).

Also add lint to the Makefile check target prereqs to match REPO_POLICIES
(check: test lint fmt-check).
2026-03-15 10:54:13 -07:00