1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-16 07:22:43 +01: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:
Eelco Dolstra 2018-09-07 17:08:43 +02:00
parent 33c3f91885
commit bba3f0a308
No known key found for this signature in database
GPG key ID: 8170B4726D7198DE
4 changed files with 48 additions and 1 deletions

View file

@ -880,6 +880,7 @@ void LocalStore::querySubstitutablePathInfos(const PathSet & paths,
narInfo ? narInfo->fileSize : 0,
info->narSize};
} catch (InvalidPath) {
} catch (SubstituterDisabled) {
} catch (Error & e) {
if (settings.tryFallback)
printError(e.what());