Skip to content

[Feature Request] Force If Newer #6163

@TheDan64

Description

@TheDan64

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-feature-requestCategory: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`Command-install

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions