Skip to content

Commit 75adeaa

Browse files
committed
cargo: Do builds under ./.cargo/work in local mode
Doing builds outside of the cwd is breaking rustc's logic for locating crates in ./.cargo/lib. Ideally, cargo would not be changing directories at all.
1 parent 88906cd commit 75adeaa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cargo/cargo.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -661,7 +661,7 @@ fn configure(opts: options) -> cargo {
661661
installdir: p,
662662
bindir: path::connect(p, "bin"),
663663
libdir: path::connect(p, "lib"),
664-
workdir: path::connect(home, "work"),
664+
workdir: path::connect(p, "work"),
665665
sourcedir: path::connect(home, "sources"),
666666
sources: sources,
667667
mut current_install: "",

0 commit comments

Comments
 (0)