mirror of
https://github.com/NixOS/nix
synced 2025-07-07 01:51:47 +02:00
parent
89db9353d7
commit
c13193017f
3 changed files with 11 additions and 4 deletions
|
@ -585,6 +585,8 @@ void LocalStore::checkDerivationOutputs(const Path & drvPath, const Derivation &
|
|||
uint64_t LocalStore::addValidPath(State & state,
|
||||
const ValidPathInfo & info, bool checkOutputs)
|
||||
{
|
||||
checkStoreName(storePathToName(info.path));
|
||||
|
||||
if (info.ca != "" && !info.isContentAddressed(*this))
|
||||
throw Error("cannot add path '%s' to the Nix store because it claims to be content-addressed but isn't", info.path);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue