Skip to content

Commit 1784909

Browse files
committed
fix(cli): made cargo metadata invocation use given cargo path
This allows users to actually not have `cargo` installed at all, and just provide a binary path, without having to set `$CARGO` etc.
1 parent 0735b8c commit 1784909

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/perseus-cli/src/install.rs

+1
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ impl Tools {
9696
// right version of `wasm-bindgen`
9797
let metadata = MetadataCommand::new()
9898
.no_deps()
99+
.cargo_path(&global_opts.cargo_engine_path)
99100
.exec()
100101
.map_err(|err| InstallError::MetadataFailed { source: err })?;
101102
let workspace_root = metadata.workspace_root.into_std_path_buf();

0 commit comments

Comments
 (0)