Skip to content

Commit ec765c3

Browse files
committed
disable caching for cargo commands
1 parent e1f0bfc commit ec765c3

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/bootstrap/src/core/builder/cargo.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,10 @@ impl Cargo {
131131
}
132132

133133
pub fn into_cmd(self) -> BootstrapCommand {
134-
self.into()
134+
let mut cmd: BootstrapCommand = self.into();
135+
// Disable caching for commands originating from Cargo-related operations.
136+
cmd.do_not_cache();
137+
cmd
135138
}
136139

137140
/// Same as [`Cargo::new`] except this one doesn't configure the linker with

0 commit comments

Comments
 (0)