-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Open
Labels
A-dependency-resolutionArea: dependency resolution and the resolverArea: dependency resolution and the resolverA-lockfileArea: Cargo.lock issuesArea: Cargo.lock issuesA-yankedArea: yanked dependenciesArea: yanked dependenciesC-feature-requestCategory: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`E-mediumExperience: MediumExperience: MediumS-acceptedStatus: Issue or feature is accepted, and has a team member available to help mentor or reviewStatus: Issue or feature is accepted, and has a team member available to help mentor or review
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.
birkenfeld, Demiu, ruuda, Lindenk, azdle and 7 more
Metadata
Metadata
Assignees
Labels
A-dependency-resolutionArea: dependency resolution and the resolverArea: dependency resolution and the resolverA-lockfileArea: Cargo.lock issuesArea: Cargo.lock issuesA-yankedArea: yanked dependenciesArea: yanked dependenciesC-feature-requestCategory: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`E-mediumExperience: MediumExperience: MediumS-acceptedStatus: Issue or feature is accepted, and has a team member available to help mentor or reviewStatus: Issue or feature is accepted, and has a team member available to help mentor or review