From 39204fabcdfc577f3d692934e30208c61e084502 Mon Sep 17 00:00:00 2001 From: Thomas SharedInbox Date: Tue, 19 May 2026 22:46:39 +0200 Subject: [PATCH] fix(ci): remove dart-tool-build cache mount from setup() Shared mutable cache mounts prevent BuildKit from persistently caching the exec result across sessions. Without the mount, build_runner output is stored in the content-addressed snapshot and survives GC cycles, allowing downstream analyze/test steps to also be stably cached. Co-Authored-By: Claude Sonnet 4.6 --- ci/main.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/ci/main.go b/ci/main.go index fe6039e..6aaa19b 100644 --- a/ci/main.go +++ b/ci/main.go @@ -211,13 +211,9 @@ func (m *Ci) pubGetLayer() *dagger.Container { } // setup overlays source files onto the cached pub-get layer and runs -// build_runner with its incremental build graph in a dedicated cache volume. -// Each caller passes only the files it actually needs so unrelated changes -// don't bust the build cache. func (m *Ci) setup(src *dagger.Directory) *dagger.Container { return m.pubGetLayer(). WithDirectory("/src", src). - WithMountedCache("/src/.dart_tool/build", dag.CacheVolume("flutter-dart-tool-build")). WithExec([]string{"flutter", "pub", "run", "build_runner", "build", "--delete-conflicting-outputs"}) }