-
Notifications
You must be signed in to change notification settings - Fork 97
Closed
Description
rust-lang/cargo#12914 changed how package ID looks like, now it's something like this:
-"bitflags 1.0.4 (registry+https://github.com/rust-lang/crates.io-index)"
+"https://github.com/rust-lang/crates.io-index#[email protected]"
This changed how PackageId
is represented:
https://docs.rs/cargo_metadata/latest/cargo_metadata/struct.PackageId.html
It is possible to inspect the repr field, if the need arises, but its precise format is an implementation detail and is subject to change.
At the same time lock.rs
creates them from parts:
crate2nix/crate2nix/src/lock.rs
Line 42 in e494b56
repr: format!("{} {} ({})", name, version, source), |
As a result mapping between "shortened" and "full" ids breaks, and it fails to find any hashes. It's not the end of the world - crate2nix
can fetch crates on it's own and place them in a file, but this is very slow if you have a lot of them.
kolloch
Metadata
Metadata
Assignees
Labels
No labels