Skip to content

Commit cf2db59

Browse files
committed
fix(script): Store cargo script lockfiles in build-dir
This is more conceptually correct but if people decide to share a `build-dir` across projects, it will wreak havoc on their cargo script builds.
1 parent 1890d16 commit cf2db59

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cargo/core/workspace.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -668,7 +668,7 @@ impl<'gctx> Workspace<'gctx> {
668668

669669
fn default_lock_root(&self) -> Filesystem {
670670
if self.root_maybe().is_embedded() {
671-
self.target_dir()
671+
self.build_dir()
672672
} else {
673673
Filesystem::new(self.root().to_owned())
674674
}

0 commit comments

Comments
 (0)