forked from lix-project/lix
Verify content-addressability assertions at registration time
This commit is contained in:
parent
668fef2e4f
commit
1c718f80d3
|
@ -519,6 +519,8 @@ void LocalStore::checkDerivationOutputs(const Path & drvPath, const Derivation &
|
||||||
uint64_t LocalStore::addValidPath(State & state,
|
uint64_t LocalStore::addValidPath(State & state,
|
||||||
const ValidPathInfo & info, bool checkOutputs)
|
const ValidPathInfo & info, bool checkOutputs)
|
||||||
{
|
{
|
||||||
|
assert(info.ca == "" || info.isContentAddressed(*this));
|
||||||
|
|
||||||
state.stmtRegisterValidPath.use()
|
state.stmtRegisterValidPath.use()
|
||||||
(info.path)
|
(info.path)
|
||||||
("sha256:" + printHash(info.narHash))
|
("sha256:" + printHash(info.narHash))
|
||||||
|
|
Loading…
Reference in a new issue