File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed
Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -8,15 +8,14 @@ import (
88type HttpNu struct {}
99
1010func (m * HttpNu ) withCaches (container * dagger.Container , targetSuffix string ) * dagger.Container {
11- // Shared across all targets (registry + git combined)
12- sharedCache := dag .CacheVolume ("dagger-cargo-shared" )
13-
14- // Separate per target (avoid build blocking)
11+ // Separate caches per target
12+ registryCache := dag .CacheVolume ("dagger-cargo-registry-" + targetSuffix )
13+ gitCache := dag .CacheVolume ("dagger-cargo-git-" + targetSuffix )
1514 targetCache := dag .CacheVolume ("dagger-cargo-target-" + targetSuffix )
1615
1716 return container .
18- WithMountedCache ("/root/.cargo/registry" , sharedCache ).
19- WithMountedCache ("/root/.cargo/git" , sharedCache ).
17+ WithMountedCache ("/root/.cargo/registry" , registryCache ).
18+ WithMountedCache ("/root/.cargo/git" , gitCache ).
2019 WithMountedCache ("/app/target" , targetCache )
2120}
2221
You can’t perform that action at this time.
0 commit comments