Closed
Description
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.