mirror of
https://github.com/NixOS/nix.git
synced 2025-11-12 05:26:02 +01:00
Respect --keep-going when a substituter fails.
Fixes #977
(cherry picked from commit 18b0808475)
This commit is contained in:
parent
0eb8bbb31e
commit
66151dc154
1 changed files with 4 additions and 2 deletions
|
|
@ -1063,8 +1063,10 @@ void DerivationGoal::outputsSubstituted()
|
|||
{
|
||||
trace("all outputs substituted (maybe)");
|
||||
|
||||
if (nrFailed > 0 && nrFailed > nrNoSubstituters + nrIncompleteClosure && !settings.tryFallback)
|
||||
throw Error(format("some substitutes for the outputs of derivation ‘%1%’ failed (usually happens due to networking issues); try ‘--fallback’ to build derivation from source ") % drvPath);
|
||||
if (nrFailed > 0 && nrFailed > nrNoSubstituters + nrIncompleteClosure && !settings.tryFallback) {
|
||||
done(BuildResult::TransientFailure, (format("some substitutes for the outputs of derivation ‘%1%’ failed (usually happens due to networking issues); try ‘--fallback’ to build derivation from source ") % drvPath).str());
|
||||
return;
|
||||
}
|
||||
|
||||
/* If the substitutes form an incomplete closure, then we should
|
||||
build the dependencies of this derivation, but after that, we
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue