mirror of
https://github.com/NixOS/nix
synced 2025-07-06 21:41:48 +02:00
* Ouch. A store upgrade could cause a substituter to be triggered,
causing a deadlock.
This commit is contained in:
parent
281e3ed059
commit
13114daa3e
3 changed files with 6 additions and 5 deletions
|
@ -239,7 +239,8 @@ Hash hashDerivationModulo(StoreAPI & store, Derivation drv)
|
|||
foreach (DerivationInputs::const_iterator, i, drv.inputDrvs) {
|
||||
Hash h = drvHashes[i->first];
|
||||
if (h.type == htUnknown) {
|
||||
Derivation drv2 = derivationFromPath(store, i->first);
|
||||
assert(store.isValidPath(i->first));
|
||||
Derivation drv2 = parseDerivation(readFile(i->first));
|
||||
h = hashDerivationModulo(store, drv2);
|
||||
drvHashes[i->first] = h;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue