Skip to content

Fail early when cloudsmith-uploader download returns an HTTP error - #520

Merged
SeanTAllen merged 1 commit into
mainfrom
fix-curl-fail-on-http-error
Dec 1, 2026
Merged

SeanTAllen merged 1 commit into
mainfrom
fix-curl-fail-on-http-error

Conversation

@SeanTAllen

Copy link
Copy Markdown
Member

Without -f, curl silently writes an error page to disk when the GitHub CDN returns a server error. tar then fails with "Unrecognized archive format," hiding the real cause. Adding -f makes curl exit non-zero on HTTP errors so the step fails at the download, not at the extraction.

Prompted by a transient CDN failure in the arm64-apple-darwin nightly: https://github.com/ponylang/ponyup/actions/runs/46551814248/job/142316833472

Without -f, curl silently writes an error page to disk and tar fails
with "Unrecognized archive format," hiding the real cause. The -f flag
makes curl exit non-zero on server errors so the step fails at the
download, not at the extraction.
@ponylang-main ponylang-main added the discuss during sync Should be discussed during an upcoming sync label Dec 1, 2026
@SeanTAllen
SeanTAllen merged commit 1252b30 into main Dec 1, 2026
15 checks passed
@SeanTAllen
SeanTAllen deleted the fix-curl-fail-on-http-error branch December 1, 2026 03:16
@ponylang-main ponylang-main removed the discuss during sync Should be discussed during an upcoming sync label Dec 1, 2026
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.

2 participants