Troubleshoot - Cargo.lock missing prevent compile

Published in the topic of NixOS, Cargo

$ nix-shell ...
Using rust registry from /nix/store/q5ac2qj0ll147d9qpmj53q3wqpkm2rci-rustRegistry-2017-06-25-d48b245

ERROR: The Cargo.lock file doesn't exist

Cargo.lock is needed to make sure that depsSha256 doesn't change
when the registry is updated.


Nix Store store the archive of local file indefinitely and not trying to fetch the updated one.


Doing delete operation on Nix Store.

nix-store --delete /nix/store/aisrntierhashtofile-phraserox-cli.tar.gz