Try next when no ca exists and have different store dirs

This commit is contained in:
Matthew Bauer 2020-07-02 10:59:24 -04:00
parent 09833126f3
commit 1f9cb06db2

View file

@ -4421,6 +4421,9 @@ void SubstitutionGoal::tryNext()
subPath = sub->makeFixedOutputPathFromCA(storePath.name(), *ca); subPath = sub->makeFixedOutputPathFromCA(storePath.name(), *ca);
if (sub->storeDir == worker.store.storeDir) if (sub->storeDir == worker.store.storeDir)
assert(subPath == storePath); assert(subPath == storePath);
} else if (sub->storeDir != worker.store.storeDir) {
tryNext();
return;
} }
try { try {