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

Unable to upgrade binaries installed via cargo #2392

Closed
keyneston opened this issue Feb 18, 2016 · 2 comments
Closed

Unable to upgrade binaries installed via cargo #2392

keyneston opened this issue Feb 18, 2016 · 2 comments

Comments

@keyneston
Copy link

I noticed there was a new version of rustfmt out and decided to upgrade. When I ran cargo install to update it I got an error about rustfmt already being installed. So I start looking through the --help output and can't find a --upgrade flag of any sort.

I was able to fix my issue by running cargo install cargo to get to cargo 0.8 and then ~/.cargo/bin/cargo uninstall rustfmt && cargo install rustfmt but it should be easier than this. If no one objects I'd like to add an --upgrade flag to cargo. Does adding new flags require an RFC?

Output

[I] Aldgate ~$ cargo install rustfmt
    Updating registry `https://github.com/rust-lang/crates.io-index`
 Downloading rustfmt v0.3.0
binary `cargo-fmt` already exists in destination as part of `rustfmt v0.2.1`

Cargo Version

[I] Aldgate ~$ which cargo && cargo version
/usr/local/bin/cargo
cargo 0.7.0 (1af03be 2015-12-08)
@steveklabnik
Copy link
Member

Yes, you have to uninstall and then install.

I think there's another bug for this open...

@alexcrichton
Copy link
Member

We do indeed have an issue for this! I'm gonna close this as a dupe of #2082, but as @steveklabnik you'll just need to uninstall and then reinstall for now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants