-
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
Incorrect [root] in Cargo.lock when using workspaces #3203
Comments
Indeed! The |
That's right. It only affects one of the tools I'm using - cargo-graph. |
Ok, thanks! |
@alexcrichton, was there any reason to not use the workspace root as the lock root, at least for cases where workspace Cargo.toml is combined with a package? If not, is it still possible to make this happen, or is it too late? At the moment, there's no way to find the workspace root looking only at the lock file, which is kind of unexpected and demands extra work for tools, like cargo-graph, to figure it out. |
Unfortunately that'd make a backwards incompatible change at this point :( |
Honestly I think the |
After #4571, Cargo no longer includes |
I have a project with several (10+) local libraries
My
Cargo.toml
looks like this.After adding
[workspace]
to the end ofCargo.toml
All of my dependencies compile as a part of my workspace (as expected). But what's strange,
foo
is no longer a[root]
in myCargo.lock
file. Insteadsub1
is. Is it intended behaviour?The text was updated successfully, but these errors were encountered: