3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/build-support/rust
Romanos Skiadas 23dd37dd5e rustPlatform.importCargoLock: add an assert for old Cargo.locks
near the end of 2019, the default Cargo.lock format was changed to
[[package]]
checksum = ...

This is what importCargoLock assumes. If the crate had not been `cargo
update`'d with a more recent toolchain than the one with the new
format as default, importCargoLock would fail when trying to access
pkg.checksum.

I ran into such a case (shamefully, in my own crate) and it took me a
while to figure out what was going on, so here is an assert with a
more user friendly message and a hint.
2021-07-18 18:19:50 +03:00
..
build-rust-crate build-rust-crate: disable incremental builds 2021-07-09 22:55:38 +09:00
hooks
patch-registry-deps
sysroot
test/import-cargo-lock
cargo-vendor-normalise.py
carnix.nix
crates-io.nix
default-crate-overrides.nix
default.nix Merge pull request #122158 from danieldk/import-cargo-lock 2021-05-28 12:07:25 +02:00
fetchcargo-default-config.toml
fetchCargoTarball.nix
fetchcrate.nix
import-cargo-lock.nix rustPlatform.importCargoLock: add an assert for old Cargo.locks 2021-07-18 18:19:50 +03:00