Create build step for non-top-level cached failures

This fixes the missing build step on failures like

  http://hydra.nixos.org/build/23222231
This commit is contained in:
Eelco Dolstra 2015-06-19 11:33:15 +02:00
parent 77c8bfd392
commit 8e408048e2

View file

@ -1224,8 +1224,9 @@ bool State::doBuildStep(std::shared_ptr<StoreAPI> store, Step::ptr step,
(otherwise the user won't be able to see what caused
the build to fail). */
for (auto & build2 : indirect) {
if (build == build2) continue;
if (cachedFailure && build2->drvPath == step->drvPath) continue;
if ((cachedFailure && build2->drvPath == step->drvPath) ||
(!cachedFailure && build == build2))
continue;
createBuildStep(txn, 0, build2, step, machine->sshName,
buildStepStatus, result.errorMsg, build->id);
}