Run make check inside the Docker build with a pinned lint stage (closes #5) #7

Merged
clawbot merged 1 commits from issue-5-dockerfile-make-check into next 2026-09-21 09:35:17 +02:00
1 Commits
Author SHA1 Message Date
sneak 21aff8b8d9 Run make check inside the Docker build with a pinned lint stage (closes #5)
Adds a golangci-lint lint stage that runs make fmt-check and make lint,
and runs make test in the build stage, so the container build fails when
formatting, lint, or any test fails. The build stage waits for the lint
stage via COPY --from=lint /src/go.sum /dev/null.

Pins the base images by digest (golang:1.24-bookworm, debian:bookworm-slim)
and the new lint image (golangci/golangci-lint:v2.7.2, Go 1.25.5) with
version and date comments; versions are unchanged. The final image content
and entrypoint are unchanged.

Model: opus-4-8
2026-09-21 07:10:38 +00:00