forked from lix-project/lix
Include "original" and "locked" in nix flake prefetch --json
This commit is contained in:
parent
62ddb6851f
commit
add7c99c3b
|
@ -1342,6 +1342,8 @@ struct CmdFlakePrefetch : FlakeCommand, MixJSON
|
|||
auto res = nlohmann::json::object();
|
||||
res["storePath"] = store->printStorePath(tree.storePath);
|
||||
res["hash"] = hash.to_string(SRI, true);
|
||||
res["original"] = fetchers::attrsToJSON(resolvedRef.toAttrs());
|
||||
res["locked"] = fetchers::attrsToJSON(lockedRef.toAttrs());
|
||||
logger->cout(res.dump());
|
||||
} else {
|
||||
notice("Downloaded '%s' to '%s' (hash '%s').",
|
||||
|
|
Loading…
Reference in a new issue