mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-10 08:16:15 +02:00
Verify content-addressability assertions at registration time
This commit is contained in:
parent
668fef2e4f
commit
1c718f80d3
1 changed files with 2 additions and 0 deletions
|
@ -519,6 +519,8 @@ void LocalStore::checkDerivationOutputs(const Path & drvPath, const Derivation &
|
|||
uint64_t LocalStore::addValidPath(State & state,
|
||||
const ValidPathInfo & info, bool checkOutputs)
|
||||
{
|
||||
assert(info.ca == "" || info.isContentAddressed(*this));
|
||||
|
||||
state.stmtRegisterValidPath.use()
|
||||
(info.path)
|
||||
("sha256:" + printHash(info.narHash))
|
||||
|
|
Loading…
Reference in a new issue