Skip to content

Nix should be more tolerate to network outage during fetch from caches #13792

@avnik

Description

@avnik

Describe the bug

nix build ... fails, if nix unable to resolve cache/substituter hostname due network outage

Steps To Reproduce

Disable DNS resolving (by remove /etc/resolv.conf for example), try a nixos-rebuild or nix build

Expected behavior

skip file download (treat as timeout or 404).

Metadata

nix (Nix) 2.28.4

Additional context

Just break my nixos based router (due pdns-recursor update), and unabled to re-deploy config fixup, both nixos-rebuild and colmena starts to fail due nix build failure. (--option substutute false helps)

Checklist


Add 👍 to issues you find important.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions