-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
[replace] does not replace metadata (dependencies) #2603
Comments
I unfortunately can't seem to reproduce this situation in a test case of Cargo. Is there a branch I could check out or an easy way for me to reproduce this locally? |
I'm facing a similar issue and
then:
Here's the result:
|
@behnam currently |
Right, @alexcrichton. The In
which sounds like exactly what I need |
Interesting part is that I get a |
@behnam ah yeah if you want to work with unpublished crates currently Cargo doesn't have support for that, but you may be interested in rust-lang/rfcs#1969 which adds support. |
Okay, got it. Thanks. But wondering what this comment in
Does it mean that local |
Yeah as long as the version of the crate listed in |
Closing due to inactivity, if this is still an issue, please reopen with more details. |
I think that the solution to this is often to use |
I have a branch of Servo with this override:
In that git branch, the
Cargo.toml
for hyper contains:However, hyper with my replaced sourced is built with url 0.5.9, which is the dependency declared in the original un-replaced hyper.
Cargo.lock
even shows this:Where
dependencies
does not match what’s in theCargo.toml
file atsource
.(Specifying an additional replacement for
"url:0.5.9" = {git = "https://github.com/servo/rust-url", branch = "1.0.0-pretending-to-be-0.5.9"}
worked, but I was trying to remove it now that url 1.0.0 is on crates.io.)The text was updated successfully, but these errors were encountered: