-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Feature request: cargo install --upgrade <binary>
#3496
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
Comments
I believe this is covered by #2082, but thanks for the report! |
Can this be re-opened please? #4981 says it simply uninstalls, then reinstalls. I have the situation on CI that I'll try cargo-update since --reinstall or --force is not a substitute for a real update command. Note: I want an "install-or-update-as-necessary" command; apparently |
How would |
It doesn't always take too long. Travis nodes appear to be highly loaded; at least performance is quite variable and normally the build doesn't time out, it's just slow. The current solution using Another reason to have a |
When using
pip
, I can runpip install --upgrade azure-cli
to get the latest version of theazure-cli
package built and installed (and thus theaz
binary gets updated if needed as well).As far as I can tell, there isn't any way to do this with
cargo install
today.At best, I can use
cargo install --list | grep <Something>
but that doesn't tell me if it's up-to-date.Alternatively,
cargo install <something> -f
will force re-compile even if the binary is up-to-date and it's unnecessary.Maybe there could be a
cargo install --upgrade <something>
functionality?The text was updated successfully, but these errors were encountered: