mirror of
https://github.com/NixOS/nix.git
synced 2025-11-14 06:22:42 +01:00
Recursively substitute the realisations
Make sure that whenever we substitute a realisation, we also substitute its entire closure
This commit is contained in:
parent
ce1a6c6b13
commit
a22755721b
3 changed files with 15 additions and 3 deletions
|
|
@ -53,6 +53,12 @@ void DrvOutputSubstitutionGoal::tryNext()
|
|||
return;
|
||||
}
|
||||
|
||||
for (const auto & [drvOutputDep, _] : outputInfo->dependentRealisations) {
|
||||
if (drvOutputDep != id) {
|
||||
addWaitee(worker.makeDrvOutputSubstitutionGoal(drvOutputDep));
|
||||
}
|
||||
}
|
||||
|
||||
addWaitee(worker.makePathSubstitutionGoal(outputInfo->outPath));
|
||||
|
||||
if (waitees.empty()) outPathValid();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue