We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 483ad7c commit 085e4c7Copy full SHA for 085e4c7
src/cargo/ops/cargo_install.rs
@@ -226,7 +226,11 @@ fn install_one(
226
if source_id.is_git() {
227
if config.target_dir()?.is_none() {
228
match TempFileBuilder::new().prefix("cargo-install").tempdir() {
229
- Ok(td) => ws.set_target_dir(Filesystem::new(td.path().to_owned())),
+ Ok(td) => {
230
+ let p = td.path().to_owned();
231
+ td_opt = Some(td);
232
+ ws.set_target_dir(Filesystem::new(p));
233
+ }
234
// If tempfile creation fails, write to cargo cache but clean up afterwards
235
Err(_) => needs_cleanup = true,
236
}
0 commit comments