mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-05-09 13:30:03 +00:00
Forbid --manifest-path
to used with batch installation
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
parent
08190ac179
commit
cfe7703af9
1 changed files with 3 additions and 0 deletions
|
@ -198,6 +198,9 @@ async fn entry(jobserver_client: LazyJobserverClient) -> Result<()> {
|
||||||
bin_dir: opts.bin_dir.take(),
|
bin_dir: opts.bin_dir.take(),
|
||||||
});
|
});
|
||||||
let crate_names = take(&mut opts.crate_names);
|
let crate_names = take(&mut opts.crate_names);
|
||||||
|
if crate_names.len() > 1 && opts.manifest_path.is_some() {
|
||||||
|
return Err(BinstallError::ManifestPathConflictedWithBatchInstallation.into());
|
||||||
|
}
|
||||||
|
|
||||||
// Initialize reqwest client
|
// Initialize reqwest client
|
||||||
let client = create_reqwest_client(opts.secure, opts.min_tls_version.map(|v| v.into()))?;
|
let client = create_reqwest_client(opts.secure, opts.min_tls_version.map(|v| v.into()))?;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue