mirror of
https://github.com/NixOS/nix
synced 2025-06-30 15:48:00 +02:00
If fallback is enabled, temporarily disable substituters after a failure
Otherwise, we just keep asking the substituter for other .narinfo files, which can take a very long time due to retries/timeouts.
This commit is contained in:
parent
33c3f91885
commit
bba3f0a308
4 changed files with 48 additions and 1 deletions
|
@ -3682,6 +3682,12 @@ void SubstitutionGoal::tryNext()
|
|||
} catch (InvalidPath &) {
|
||||
tryNext();
|
||||
return;
|
||||
} catch (SubstituterDisabled &) {
|
||||
if (settings.tryFallback) {
|
||||
tryNext();
|
||||
return;
|
||||
}
|
||||
throw;
|
||||
} catch (Error & e) {
|
||||
if (settings.tryFallback) {
|
||||
printError(e.what());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue