mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-23 17:51:09 +00:00
Set current dir at check_wasm_toolchain_installed at wasm-builder (#10284)
* Set current dir at check_wasm_toolchain_installed * Add comments
This commit is contained in:
@@ -120,6 +120,9 @@ fn check_wasm_toolchain_installed(
|
|||||||
let manifest_path = temp.path().join("Cargo.toml").display().to_string();
|
let manifest_path = temp.path().join("Cargo.toml").display().to_string();
|
||||||
|
|
||||||
let mut build_cmd = cargo_command.command();
|
let mut build_cmd = cargo_command.command();
|
||||||
|
// Chdir to temp to avoid including project's .cargo/config.toml
|
||||||
|
// by accident - it can happen in some CI environments.
|
||||||
|
build_cmd.current_dir(&temp);
|
||||||
build_cmd.args(&[
|
build_cmd.args(&[
|
||||||
"build",
|
"build",
|
||||||
"--target=wasm32-unknown-unknown",
|
"--target=wasm32-unknown-unknown",
|
||||||
@@ -132,6 +135,9 @@ fn check_wasm_toolchain_installed(
|
|||||||
}
|
}
|
||||||
|
|
||||||
let mut run_cmd = cargo_command.command();
|
let mut run_cmd = cargo_command.command();
|
||||||
|
// Chdir to temp to avoid including project's .cargo/config.toml
|
||||||
|
// by accident - it can happen in some CI environments.
|
||||||
|
run_cmd.current_dir(&temp);
|
||||||
run_cmd.args(&["run", "--manifest-path", &manifest_path]);
|
run_cmd.args(&["run", "--manifest-path", &manifest_path]);
|
||||||
|
|
||||||
// Unset the `CARGO_TARGET_DIR` to prevent a cargo deadlock
|
// Unset the `CARGO_TARGET_DIR` to prevent a cargo deadlock
|
||||||
|
|||||||
Reference in New Issue
Block a user