[Feature Request] Force If Newer #6163
Labels
C-feature-request
Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`
Command-install
In my project's CI, I cache a rust binary CLI tool so that it doesn't have to be reinstalled every time. However, when newer versions of the binary are released, it'd be nice to force an update.
So for example, it'd be great to have a
cargo install X --force-if-newer
flag which acts like the--force
flag but is conditional on a never version of the binary being available. That way it doesn't reinstall blindly every time but only as necessary.Edit: Oops, didn't open an internals thread first.
The text was updated successfully, but these errors were encountered: