vendor: Add --skip-path-deps to skip path dependencies#10135
vendor: Add --skip-path-deps to skip path dependencies#10135stevenroose wants to merge 1 commit intorust-lang:masterfrom
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.