Skip to content

Commit d245b58

Browse files
ci(setup-nix): disable HTTP/2 for Nix downloads
A failed HTTP/2 connection fails every NAR multiplexed on it. Nix resumes NARs that had fully arrived at EOF, gets HTTP 416, and fails the substitution (NixOS/nix#16722). Separate HTTP/1.1 connections confine a failure to one transfer. Signed-off-by: Matthew Grossman <mgrossman@nvidia.com>
1 parent d66d338 commit d245b58

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

‎.github/actions/setup-nix/action.yml‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,11 @@ runs:
2626
with:
2727
github-token: ${{ github.token }}
2828
summarize: false
29+
# One failed HTTP/2 connection fails every NAR multiplexed on it, and
30+
# Nix fails completed NARs it then resumes at EOF with HTTP 416
31+
# (NixOS/nix#16722). Separate HTTP/1.1 connections limit the damage.
32+
extra-conf: |
33+
http2 = false
2934
3035
- uses: cachix/cachix-action@5f2d7c5294214f71b873db4b969586b980625e71 # v17
3136
with:

0 commit comments

Comments
 (0)