Don't create unnecessary substitution goals for derivations
This commit is contained in:
parent
554eaf5e8c
commit
9f355738e1
|
@ -936,6 +936,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 New Issue