-
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
workspaces should treat source-replacement'd crates identically to crates.io ones #3728
Comments
I agree, the intention of source replacement is to be totally transparent! I'm curious, though, how come |
The |
So perhaps things do work fine and it's only our awkward directory structure that keeps this from working. =/ |
Oh ok so in the example above If that's the case I wonder if this boils down to #3192? You basically want a way to say "no, really, geckolib is not in this workspace" |
That's correct.
Probably! Seems all of our problems boil down to that bug. :) |
Consider a source tree layout like structure like:
Furthermore,
vendored_crates/
is treated as a source-replacement path for crates.io.It doesn't matter too much whether
foo/Cargo.toml
is infoo/
or the project root: if you attempt to buildfoo/library/
, Cargo will complain thatvendored_crates/project/sublibrary/
belongs to thevendored_crates/project/
workspace, and that's one workspace too many.This behavior makes using vendored crates inconvenient, because you would have to strip out workspace-ness from various places when vendoring, which is undesirable and fiddly. Cargo should treat these source-replacement'd crates identically to the ones downloaded from crates.io.
The text was updated successfully, but these errors were encountered: