mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-22 22:16:16 +02:00
buildPaths(): Handle ecIncompleteClosure
buildPaths() on a non-derivation would incorrectly not throw an error if the path didn't have a substitute.
This commit is contained in:
parent
b77fb8acb5
commit
10ae8fabf1
1 changed files with 1 additions and 1 deletions
|
@ -3783,7 +3783,7 @@ void LocalStore::buildPaths(const PathSet & drvPaths, BuildMode buildMode)
|
||||||
|
|
||||||
PathSet failed;
|
PathSet failed;
|
||||||
for (auto & i : goals)
|
for (auto & i : goals)
|
||||||
if (i->getExitCode() == Goal::ecFailed) {
|
if (i->getExitCode() != Goal::ecSuccess) {
|
||||||
DerivationGoal * i2 = dynamic_cast<DerivationGoal *>(i.get());
|
DerivationGoal * i2 = dynamic_cast<DerivationGoal *>(i.get());
|
||||||
if (i2) failed.insert(i2->getDrvPath());
|
if (i2) failed.insert(i2->getDrvPath());
|
||||||
else failed.insert(dynamic_cast<SubstitutionGoal *>(i.get())->getStorePath());
|
else failed.insert(dynamic_cast<SubstitutionGoal *>(i.get())->getStorePath());
|
||||||
|
|
Loading…
Reference in a new issue