Skip to content

Commit 41d43a3

Browse files
committed
Try cache
1 parent f512d97 commit 41d43a3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.dagger/src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,13 +105,13 @@ export class AtomicServer {
105105
docsFolder(): Directory {
106106
const actualDocsDirectory = this.source.directory("docs");
107107
const cargoCache = dag.cacheVolume("cargo");
108-
const cargoBinCache = dag.cacheVolume("cargo-bin");
109108

110109
const docsContainer = dag
111110
.container()
112111
.from(RUST_IMAGE)
112+
.withExec(["sh", "-c", ". $HOME/.cargo/env"])
113+
.withEnvVariable("PATH", "$HOME/.cargo/bin:$PATH")
113114
.withMountedCache("/usr/local/cargo/registry", cargoCache)
114-
.withMountedCache("/usr/local/cargo/bin", cargoBinCache)
115115
.withExec(["cargo", "install", "mdbook"])
116116
.withExec(["cargo", "install", "mdbook-linkcheck"]);
117117
return docsContainer

0 commit comments

Comments
 (0)