NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
18.27k stars 14.25k forks source link

improve error handling flags to curl #358042

Open lolbinarycat opened 10 hours ago

lolbinarycat commented 10 hours ago

current invocation is extremely fragile if tcp sockets are spuriously shutdown (this can happen when changing networks, or just due to a bad ISP)

--retry-all-errors is the only way to make curl robust against this type of failure.

targeted at master instead of staging since fetchurl uses fixed-output derivations, and thus changing it will not cause mass rebuilds.

Things done


Add a :+1: reaction to pull requests you find important.