Skip to content

Prioritize [patch] versions the way we do for versions in the lockfile #9535

Closed
@Eh2406

Description

@Eh2406

Describe the problem you are trying to solve

Often when [patch] does not work for a user it is because there are newer versions available from the canonical source. Fixing this requires ether temporarily modifying the version of the replaced package or the requirement of the depending package. In ether case this probably needs to be un-done before upstreaming the fix.

Describe the solution you'd like

If a version is from the [patch] section try it before versions from the canonical source, even if the patched package has a lower version. This is already what happens for versions that were in a lockfile, so it should not be hard to do.

Notes

We thought of this in a Cargo Team meeting, and I wanted to wright it down before we forgot.

Metadata

Metadata

Assignees

Labels

A-patchArea: [patch] table overrideC-feature-requestCategory: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`S-acceptedStatus: Issue or feature is accepted, and has a team member available to help mentor or review

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions