1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-22 02:09:36 +01:00

Provide a structured JSON serialisation of hashes

This commit is contained in:
Eelco Dolstra 2025-03-13 18:52:29 +01:00
parent 2a2af3f72f
commit c515bc66f1
3 changed files with 19 additions and 2 deletions

View file

@ -2659,8 +2659,8 @@ SingleDrvOutputs LocalDerivationGoal::registerOutputs()
act->result(resHashMismatch,
{
{"storePath", worker.store.printStorePath(drvPath)},
{"wanted", wanted.to_string(HashFormat::SRI, true)},
{"got", got.to_string(HashFormat::SRI, true)},
{"wanted", wanted},
{"got", got},
});
}
if (!newInfo0.references.empty()) {