lix/src
Cole Helbling c976cb0b8a
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)
2020-04-05 09:00:34 -07:00
..
build-remote Remove global -I flags 2020-03-30 15:30:19 +02:00
cpptoml bump cpptoml to v0.1.1 2019-05-29 17:01:39 +08:00
libexpr libexpr: remove unused attrError 2020-04-02 17:04:00 +02:00
libmain Remove global -I flags 2020-03-30 15:30:19 +02:00
libstore Don't retry on "unsupported protocol" error 2020-04-05 09:00:34 -07:00
libutil Backport 'nix dev-shell' from the flakes branch 2020-03-30 19:16:45 +02:00
nix nix shell -> nix dev-shell 2020-03-31 13:45:28 +02:00
nix-build Remove global -I flags 2020-03-30 15:30:19 +02:00
nix-channel Remove global -I flags 2020-03-30 15:30:19 +02:00
nix-collect-garbage Remove global -I flags 2020-03-30 15:30:19 +02:00
nix-copy-closure Remove global -I flags 2020-03-30 15:30:19 +02:00
nix-daemon Remove global -I flags 2020-03-30 15:30:19 +02:00
nix-env nix-env: Refuse to operate on a new-style profile 2020-04-03 20:14:34 +02:00
nix-instantiate Remove global -I flags 2020-03-30 15:30:19 +02:00
nix-prefetch-url Remove global -I flags 2020-03-30 15:30:19 +02:00
nix-store Remove global -I flags 2020-03-30 15:30:19 +02:00
resolve-system-dependencies Fix macOS build 2020-03-30 17:00:40 +02:00