Missing cargo install --upgrade
#6475
Labels
C-feature-request
Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`
The current procedure for updating a binary installed via
cargo
isn't ergonomic and is prone to human error, as there is no one-stop process for installing an updated version of a package if it exists, else leaving the current version undisturbed.The default behavior of
cargo install foo
whenfoo
is already installed is to fail to install with an error message that contains enough information to determine whether or not the output is out of date:So the current process for possibly upgrading a package requires
cargo install foo
foo
vs the version offoo
that was found in the index.cargo install foo
again, but this time with the--force
flag.(The alternative is to use
--force
from the beginning, forcing a lengthy recompile process and wasting far more time than the above.)The text was updated successfully, but these errors were encountered: