mirror of
https://github.com/NixOS/nix
synced 2025-06-25 10:41:16 +02:00
nix flake prefetch: Remove __final
This is currently an internal attribute, not intended to be shown to users. Fixes #13150.
This commit is contained in:
parent
1e822bd414
commit
c686de6505
1 changed files with 1 additions and 0 deletions
|
@ -1497,6 +1497,7 @@ struct CmdFlakePrefetch : FlakeCommand, MixJSON
|
||||||
res["hash"] = hash.to_string(HashFormat::SRI, true);
|
res["hash"] = hash.to_string(HashFormat::SRI, true);
|
||||||
res["original"] = fetchers::attrsToJSON(resolvedRef.toAttrs());
|
res["original"] = fetchers::attrsToJSON(resolvedRef.toAttrs());
|
||||||
res["locked"] = fetchers::attrsToJSON(lockedRef.toAttrs());
|
res["locked"] = fetchers::attrsToJSON(lockedRef.toAttrs());
|
||||||
|
res["locked"].erase("__final"); // internal for now
|
||||||
printJSON(res);
|
printJSON(res);
|
||||||
} else {
|
} else {
|
||||||
notice("Downloaded '%s' to '%s' (hash '%s').",
|
notice("Downloaded '%s' to '%s' (hash '%s').",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue