1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-12-24 09:50:55 +01:00
nix/src
Cole Helbling 7fee49ef37 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)

(cherry picked from commit c976cb0b8a)
Signed-off-by: Domen Kožar <domen@dev.si>
2020-04-10 10:39:35 +02:00
..
build-remote canBuildLocally: check for features 2019-03-06 05:03:25 +00:00
cpptoml bump cpptoml to v0.1.1 2019-05-29 17:01:39 +08:00
libexpr Move #include 2020-01-05 16:30:52 +01:00
libmain Disable OpenSSL lock callback on OpenSSL >= 1.1.1 2019-10-09 16:25:23 +02:00
libstore Don't retry on "unsupported protocol" error 2020-04-10 10:39:35 +02:00
libutil Fix progress bar when nix-prefetch-url is piped. 2020-01-04 13:40:03 +01:00
nix Doh 2020-02-18 21:30:31 +01:00
nix-build Don't catch exceptions by value 2019-10-09 16:24:28 +02:00
nix-channel nix-env: Create ~/.nix-profile automatically 2019-10-10 00:00:54 +02:00
nix-collect-garbage Merge all nix-* binaries into nix 2018-10-26 12:54:00 +02:00
nix-copy-closure Merge all nix-* binaries into nix 2018-10-26 12:54:00 +02:00
nix-daemon Remove world-writability from per-user directories 2019-10-09 23:57:25 +02:00
nix-env nix-env: Ignore failures creating ~/.nix-profile and ~/.nix-defexpr 2019-10-10 09:42:22 +02:00
nix-instantiate Merge all nix-* binaries into nix 2018-10-26 12:54:00 +02:00
nix-prefetch-url nix-prefetch-url: Stop progress bar before printing results 2018-11-09 10:34:12 +01:00
nix-store nix-store: fix out of sync protocol 2019-08-16 15:05:45 +02:00
nlohmann nlohmann-json: 3.4.0 -> 3.5.0 2018-12-21 22:38:06 -06:00
resolve-system-dependencies Remove mentions of libformat, it no longer exists 2019-01-05 14:31:29 -05:00