fix: CARGO_TARGET_DIR_freeze (#9114)

This commit is contained in:
Ethan Brierley authored and GitHub committed 2021-06-15 16:23:57 +00:00
1 parent 693b39f43b
commit 7dd38e3aec
1 file changed
+4
@@ -129,6 +129,10 @@ fn check_wasm_toolchain_installed(
let mut run_cmd = cargo_command.command();
run_cmd.args(&["run", "--manifest-path", &manifest_path]);
// Unset the `CARGO_TARGET_DIR` to prevent a cargo deadlock
build_cmd.env_remove("CARGO_TARGET_DIR");
run_cmd.env_remove("CARGO_TARGET_DIR");
build_cmd
.output()
.map_err(|_| err_msg.clone())