fix(image): drop the Go toolchains from the ci image's hook cache #4

Merged
Defame1297 merged 1 commits from fix/ci-image-layer-size into main 2026-10-25 11:13:49 +00:00
1 Commits
Author SHA1 Message Date
ClaudeandClaude Sonnet 5.5 8078477a4b fix(image): drop the Go toolchains from the ci image's hook cache
Lint / lint (pull_request) Successful in 1m23s
Build / build (pull_request) Successful in 51s
The first push of mortis/ci failed with 413 Payload Too Large: the
/opt/pre-commit layer was 377 MB, of which two environments of 172 and
176 MB (gitleaks and actionlint) each hold their own Go toolchain
(pre-commit keeps <env>/.go; only the built binaries in <env>/bin run).

Run the yamllint, gitleaks and actionlint hooks on a staged sample, delete
the toolchains and the Go build cache, and run the three hooks again, so a
cache that no longer works fails the build instead of the jobs.

Also stop the python3.X symlink loop from hiding a broken link (the RUN had
no -e, so only the last iteration decided the status).

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MmzvM9skAvYcph2c9EiPcm
2026-10-25 10:57:49 +00:00