Keep Go's caches out of the test stage's image (closes #256) #257

Merged
clawbot merged 1 commits from issue-256-test-stage-cache into next 2026-11-03 12:20:49 +01:00
1 Commits
Author SHA1 Message Date
sneak 6785689216 Keep Go's caches out of the test stage's image (closes #256)
check / check (push) Canceled after 0s
The test stage ran go mod download in its own layer, and go test left
Go's build cache in another. Exporting them took about 20 seconds of
every make test, and nothing reads either one afterwards.

Removing the build cache alone saved almost nothing, because the module
cache is the larger layer. So the download now runs in the same RUN as
go test, and go clean removes both caches once the tests pass. A failing
run still reruns with -v and exits 1.

Model: opus-5-5
2026-11-03 10:32:23 +00:00