diff options
author | Cole Helbling <cole.e.helbling@outlook.com> | 2020-04-04 12:27:39 -0700 |
---|---|---|
committer | Cole Helbling <cole.e.helbling@outlook.com> | 2020-04-05 09:00:34 -0700 |
commit | c976cb0b8ab5d0f2c4ab8c9826fc7db56e2f1b3e (patch) | |
tree | bf7ec26e20f805f416299600eea93cc944a66934 /src/libexpr/names.hh | |
parent | 5e7ccdc9e3ddd61dc85e20c898001345bfb497a5 (diff) |
Don't retry on "unsupported protocol" error
When encountering an unsupported protocol, there's no need to retry.
Chances are, it won't suddenly be supported between retry attempts;
error instead. Otherwise, you see something like the following:
$ nix-env -i -f git://git@github.com/foo/bar
warning: unable to download 'git://git@github.com/foo/bar': Unsupported protocol (1); retrying in 335 ms
warning: unable to download 'git://git@github.com/foo/bar': Unsupported protocol (1); retrying in 604 ms
warning: unable to download 'git://git@github.com/foo/bar': Unsupported protocol (1); retrying in 1340 ms
warning: unable to download 'git://git@github.com/foo/bar': Unsupported protocol (1); retrying in 2685 ms
With this change, you now see:
$ nix-env -i -f git://git@github.com/foo/bar
error: unable to download 'git://git@github.com/foo/bar': Unsupported protocol (1)
Diffstat (limited to 'src/libexpr/names.hh')
0 files changed, 0 insertions, 0 deletions