Skip to content

Commit 9ece28b

Browse files
committed
fix(script): Split cargo script's target-dir from build-dir by default
This avoids needing to be careful about cargo scripts conflicting with "artifact names". Granted, there will be more work to deal with the validation checks but that comes later.
1 parent 9cb5211 commit 9ece28b

File tree

2 files changed

+51
-51
lines changed

2 files changed

+51
-51
lines changed

src/cargo/core/workspace.rs

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

448448
fn default_target_dir(&self) -> Filesystem {
449449
if self.root_maybe().is_embedded() {
450-
self.default_build_dir()
450+
self.build_dir().join("target")
451451
} else {
452452
Filesystem::new(self.root().join("target"))
453453
}

0 commit comments

Comments
 (0)