mirror of
https://github.com/NixOS/nix
synced 2025-07-07 01:51:47 +02:00
Merge pull request #4838 from NixOS/ca/recursively-substitute-realisations
Recursively substitute the realisations
This commit is contained in:
commit
4a5aa1dbf6
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();
|
||||
|
|
|
@ -25,6 +25,8 @@
|
|||
}
|
||||
#define GENERATE_EQUAL(args...) GENERATE_ONE_CMP(==, args)
|
||||
#define GENERATE_LEQ(args...) GENERATE_ONE_CMP(<, args)
|
||||
#define GENERATE_NEQ(args...) GENERATE_ONE_CMP(!=, args)
|
||||
#define GENERATE_CMP(args...) \
|
||||
GENERATE_EQUAL(args) \
|
||||
GENERATE_LEQ(args)
|
||||
GENERATE_LEQ(args) \
|
||||
GENERATE_NEQ(args)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue