cargo install should have an option to allow installing a yanked binary #13082
Labels
A-yanked
Area: yanked dependencies
C-feature-request
Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`
Command-install
S-triage
Status: This issue is waiting on initial triage.
Problem
Installing binaries using
cargo install --version <version> <crate>
will fail if version is yanked.Crates can be yanked for different reasons. While some of those reasons are security related, not all are. Even for security related reasons, blocking the install of yanked tools is disruptive. Teams may need time to update CI, install scripts, systems, to be able to upgrade to a new version.
In CI systems it breaks and prevents reproducibility when versions of tools can disappear.
Proposed Solution
Add an option
--allow-yanked
to allow installing yanked binaries.Or, change the
--force
option to allow installing yanked binaries.Notes
No response
The text was updated successfully, but these errors were encountered: