Open
Description
Currently if you have a Cargo.lock
that depends on yanked crates you are able to build the project just fine as the yanked crates still exist. However there is currently no way to create a Cargo.lock
if the only versions of some dependency that satisfies version constraints are yanked, aside from creating a Cargo.lock
by hand which is a really poor solution.
I propose a new flag that is added to Cargo commands capable of creating a Cargo.lock
which will allow Cargo to add dependencies on yanked crates if it has no other option.
Inspired by https://users.rust-lang.org/t/crates-io-disable-yanking-crates-that-have-dependant-crates/11492
Metadata
Metadata
Assignees
Labels
Area: dependency resolution and the resolverArea: Cargo.lock issuesArea: yanked dependenciesCategory: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`Experience: MediumStatus: Issue or feature is accepted, and has a team member available to help mentor or review