From cf2db59da423af6aed0c35fa4cdd62607bd11c67 Mon Sep 17 00:00:00 2001 From: Ed Page Date: Fri, 10 Oct 2025 14:17:55 -0500 Subject: [PATCH] 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. --- src/cargo/core/workspace.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cargo/core/workspace.rs b/src/cargo/core/workspace.rs index 79314ff784a..acc11a566a7 100644 --- a/src/cargo/core/workspace.rs +++ b/src/cargo/core/workspace.rs @@ -668,7 +668,7 @@ impl<'gctx> Workspace<'gctx> { fn default_lock_root(&self) -> Filesystem { if self.root_maybe().is_embedded() { - self.target_dir() + self.build_dir() } else { Filesystem::new(self.root().to_owned()) }