mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-05-10 05:50:02 +00:00
feat: Add new cmdline option --no-track
(#1111)
Same as `cargo-install`'s `--no-track`. It is also passed to `cargo-install` if it is invoked. Also fixed `fs::atomic_symlink_file` which on Windows could fallback to non-atomic install if symlinking failed. Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
parent
a849db3ef4
commit
1432093dcc
8 changed files with 194 additions and 43 deletions
|
@ -172,6 +172,21 @@ pub struct Args {
|
|||
#[clap(help_heading = "Options", long)]
|
||||
pub no_cleanup: bool,
|
||||
|
||||
/// By default, binstall keeps track of the installed packages with metadata files
|
||||
/// stored in the installation root directory.
|
||||
///
|
||||
/// This flag tells binstall not to use or create that file.
|
||||
///
|
||||
/// With this flag, binstall will refuse to overwrite any existing files unless the
|
||||
/// `--force` flag is used.
|
||||
///
|
||||
/// This also disables binstall’s ability to protect against multiple concurrent
|
||||
/// invocations of binstall installing at the same time.
|
||||
///
|
||||
/// This flag will also be passed to `cargo-install` if it is invoked.
|
||||
#[clap(help_heading = "Options", long)]
|
||||
pub no_track: bool,
|
||||
|
||||
/// Install binaries in a custom location.
|
||||
///
|
||||
/// By default, binaries are installed to the global location `$CARGO_HOME/bin`, and global
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue