-
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
Cargo.lock in a workspace lists an arbitrary package as the "[root]" #3704
Comments
The Looks like |
Ah yeah this is an unfortunate compatibility with old lock files (no longer needed), and I think it may just need to be a bug fix in cargo-outdated |
Whether this is a bug or not, if it is not "fixed" (according to mbrubeck's suggestion) it would at least be nice if this were better documented somewhere. I was really confused looking at my |
Okay, that's great! Thanks for the response! |
In a workspace, whether it includes a root crate or only a "virtual" manifest, the
[root]
section ofCargo.lock
always lists the last package (alphabetically, by name) in the workspace. For tools like cargo-outdated that parse Cargo.lock and look for the root package, it would be more useful for this section to contain the actual root package if there is one.For a workspace with no root package, it might be better to omit the
[root]
section as unnecessary. If that's not possible, then perhaps it should be the first package in themembers
array, or something else that the developer can control.The text was updated successfully, but these errors were encountered: