-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Deprecate replace? #7092
Comments
We'd obviously take a long time to deprecate and probably can't remove the feature until the next edition. |
Generous 👍 from me, this was always the initial intention but we never got around to doing it. I'd be game to do this at any time! |
I can vaguely recall |
The primary problem with There are also some bugs (https://github.com/rust-lang/cargo/issues?q=is%3Aopen+is%3Aissue+label%3AA-patch), particularly around patching git dependencies (such as #5478 and #4509). Not being able to switch branches seems particularly not good. I don't know enough the judge how important these issues are. |
I think that's something we do want to support in I personally think there's enough bugs and usage issues with |
There are error messages emitted that still point to |
Indeed, I saw that so I made a PR: #9533. |
…r=alexcrichton Replace deprecated `[replace]` references with `[patch]` Cf. #7092. Note: Untested, but given the changes I figure that if the testsuite passes it should be fairly safe.
I was reading https://doc.rust-lang.org/cargo/reference/overriding-dependencies.html#the-replace-section, and I'm completely dumbfounded with how to force the use of a specific version of a dependency that is also required by a sub dependency that is from git. I'm trying to use https://github.com/tauri-apps/tauri-plugin-window-state, however, it breaks my build since one of its sub-dependencies is broken. The docs says replace is deprecated, but why is this issue still open then? |
Replace was marked as deprecated in #7733, so I take it this is resolved? If there is something I'm missing, let us know so we can re-open this. |
I don't see any good reason to have
replace
andpatch
and it is confusing that we have two features that do the same thing in subtly different ways.The text was updated successfully, but these errors were encountered: