Skip to content

fix: abort cleanly when a source tarball download fails - #84

Open
kochj23 wants to merge 1 commit into
jasonacox:masterfrom
kochj23:claude/fail-on-bad-download
Open

kochj23 wants to merge 1 commit into
jasonacox:masterfrom
kochj23:claude/fail-on-bad-download

Conversation

@kochj23

@kochj23 kochj23 commented Nov 7, 2026

Copy link
Copy Markdown

curl -LOs without --fail saves the HTTP 404 page as .tar.gz and
returns 0. tar then fails, and every later run prints 'Using .tar.gz'
and fails again because the bogus file is cached. Use --fail, remove any
partial file, and print a clear error for curl, nghttp2 and both OpenSSL
phases.

Adds tests/test_download.sh (offline, stubbed curl) as a regression test.

Testing

Ran the new test script for this change plus bash -n on every script on macOS (Apple silicon).

Result on this branch: (test_download.sh:ok; bash -n all scripts). The new tests fail on master and pass with the change.

🤖 Generated with Claude Code

curl -LOs without --fail saves the HTTP 404 page as <pkg>.tar.gz and
returns 0. tar then fails, and every later run prints 'Using <pkg>.tar.gz'
and fails again because the bogus file is cached. Use --fail, remove any
partial file, and print a clear error for curl, nghttp2 and both OpenSSL
phases.

Adds tests/test_download.sh (offline, stubbed curl) as a regression test.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant