-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Closed
Labels
E-easyExperience: EasyExperience: Easy
Description
Cargo.lock includes [root] section which is no longer used for anything, because it became obsolete when Cargo workspaces were implemented.
About a year ago, support for rootless lockfiles was implemented: 5e644df.
However, by default Cargo still adds an arbitrary root to be compatible with older Cargos. Given that we have a year's worth of new Cargos, I think we can safely switch to rootless lockfiles.
This code should be removed:
cargo/src/cargo/ops/lockfile.rs
Lines 45 to 49 in d7e3b7f
| let use_root_key = if let Ok(ref orig) = orig { | |
| !orig.starts_with("[[package]]") | |
| } else { | |
| true | |
| }; |
However, we should make sure that Cargo is still able to read a lockfile with a root section (there's a test for this).
Metadata
Metadata
Assignees
Labels
E-easyExperience: EasyExperience: Easy