-
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
vendor: Add --skip-path-deps to skip path dependencies #10135
Conversation
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @ehuss (or someone else) soon. Please see the contribution instructions for more information. |
This changes the erroneous behavior to skip path dependencies and adds a command option to keep the current behavior.
Added test, fixed build and optimized something I oversaw. I can understand that it might be good behavior to not automatically duplicate path dependencies that are inside the current path. So let's look at some different options for behavior:
|
272a074
to
9775515
Compare
Currently, it still suffers from the EDIT: I can't seem to find a way to work around that. It seems that all "sources" internally get converted right away into full Url's with absolute paths and the original relative URL used is nowhere maintained. |
☔ The latest upstream changes (presumably #10161) made this pull request unmergeable. Please resolve the merge conflicts. |
In its current form, this would break backwards compatibility, by changing the existing behavior. That's not something we can do lightly; it would take a transition of some kind, assuming we wanted to make that change. Given that, based on our conversation in today's @rust-lang/cargo meeting, I'm going to close this PR. However, we'd be happy to talk through details and use cases more on #10134. |
Would you be opposed to adding an option to do the reverse? i.e. include local paths? |
Oh, I missed older notifications to this thread.
IMO this is a bug, because this behavior is nowhere documented whatsoever. So are bug fixes considered "breaking backwards compatibility"? Also, having additional folders in someone's I would prefer to have this MR reopened, but I could try convert it into a version where we add |
I pushed an updated version of this branch that is rebased on master. |
This changes the erroneous behavior to skip path dependencies and adds a
command option to keep the current behavior.
Fixes #10134 and #9172.