mirror of
https://github.com/NixOS/nix
synced 2025-07-07 01:51:47 +02:00
nix flake metadata: Show flake fingerprint
This is useful for testing/debugging and maybe for sharing eval caches (since it tells you what file in ~/.cache/nix/eval-cache-v5 to copy).
This commit is contained in:
parent
9d95c228ee
commit
1ff186fc6e
3 changed files with 10 additions and 0 deletions
|
@ -70,6 +70,9 @@ in
|
|||
# Check that we got redirected to the immutable URL.
|
||||
assert info["locked"]["url"] == "http://localhost/stable/${nixpkgs.rev}.tar.gz"
|
||||
|
||||
# Check that we got a fingerprint for caching.
|
||||
assert info["fingerprint"]
|
||||
|
||||
# Check that we got the rev and revCount attributes.
|
||||
assert info["revision"] == "${nixpkgs.rev}"
|
||||
assert info["revCount"] == 1234
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue