Skip to content

Commit d239362

Browse files
committed
wip
1 parent e3884d2 commit d239362

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

.dagger/main.go

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,14 @@ import (
88
type HttpNu struct{}
99

1010
func (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

0 commit comments

Comments
 (0)