Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add --force flag to cargo install #2405

Merged
merged 2 commits into from
May 2, 2016
Merged

Add --force flag to cargo install #2405

merged 2 commits into from
May 2, 2016

Commits on Apr 30, 2016

  1. Add --force flag to cargo install

    Close #2082
    
    Adding `--force` (`-f`) instructs cargo to overwrite existing binaries
    (updating the metadata accordingly).
    This allows updating crates via `cargo install -f <crate>`.
    
    Installation happens in two stages now: binaries are copied into a
    temporary subdirectory of the destination first, then moved into
    destination. This should catch some errors earlier.
    
    In case of installation error cargo will remove new binaries but won't
    attempt to undo successful overwrites.
    gkoz committed Apr 30, 2016
    Configuration menu
    Copy the full SHA
    9ea1f2a View commit details
    Browse the repository at this point in the history
  2. cargo-install: move binaries from the build dir if possible

    Try moving the binaries (and fall back to copying) if the build
    directory is a temporary one (source isn't a local path).
    gkoz committed Apr 30, 2016
    Configuration menu
    Copy the full SHA
    9f0fa24 View commit details
    Browse the repository at this point in the history