1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-03 11:02:05 +00:00
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 maturinBuildHook: add rustc to deps 2021-05-21 07:51:27 +02:00
patch-registry-deps
sysroot
test/import-cargo-lock rustPlatform.importCargoLock: add test cases for importCargoLock 2021-05-28 08:01:28 +02:00
cargo-vendor-normalise.py
carnix.nix
crates-io.nix
default-crate-overrides.nix llvmPackages: Multuple outputs for everythting 2021-04-30 05:41:00 +00:00
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