mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-10 08:16:15 +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;
|
||||
for (auto & i : goals)
|
||||
if (i->getExitCode() == Goal::ecFailed) {
|
||||
if (i->getExitCode() != Goal::ecSuccess) {
|
||||
DerivationGoal * i2 = dynamic_cast<DerivationGoal *>(i.get());
|
||||
if (i2) failed.insert(i2->getDrvPath());
|
||||
else failed.insert(dynamic_cast<SubstitutionGoal *>(i.get())->getStorePath());
|
||||
|
|
Loading…
Reference in a new issue