mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-10 08:16:15 +02:00
Don't create unnecessary substitution goals for derivations
This commit is contained in:
parent
215745415e
commit
9e3389c337
1 changed files with 5 additions and 0 deletions
|
@ -924,6 +924,11 @@ void DerivationGoal::init()
|
|||
/* The first thing to do is to make sure that the derivation
|
||||
exists. If it doesn't, it may be created through a
|
||||
substitute. */
|
||||
if (buildMode == bmNormal && worker.store.isValidPath(drvPath)) {
|
||||
haveDerivation();
|
||||
return;
|
||||
}
|
||||
|
||||
addWaitee(worker.makeSubstitutionGoal(drvPath));
|
||||
|
||||
state = &DerivationGoal::haveDerivation;
|
||||
|
|
Loading…
Reference in a new issue