mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-04-24 22:30:03 +00:00
Add new option --locked
that is passed through to cargo-install
(#830)
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
parent
0e055dbb7c
commit
96ebcfd08f
4 changed files with 12 additions and 0 deletions
|
@ -21,6 +21,7 @@ pub struct Options {
|
|||
pub dry_run: bool,
|
||||
pub force: bool,
|
||||
pub quiet: bool,
|
||||
pub locked: bool,
|
||||
|
||||
pub version_req: Option<VersionReq>,
|
||||
pub manifest_path: Option<PathBuf>,
|
||||
|
|
|
@ -150,6 +150,10 @@ impl ResolutionSource {
|
|||
cmd.arg("--force");
|
||||
}
|
||||
|
||||
if opts.locked {
|
||||
cmd.arg("--locked");
|
||||
}
|
||||
|
||||
if !opts.dry_run {
|
||||
let mut child = opts
|
||||
.jobserver_client
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue