Skip to content

fix: show curl errors when downloading ionCube loaders - #75

Merged
stasadev merged 1 commit into
mainfrom
20261016_stasadev_curl_fail
Oct 16, 2026
Merged

stasadev merged 1 commit into
mainfrom
20261016_stasadev_curl_fail

Conversation

@stasadev

Copy link
Copy Markdown
Member

Short Summary (TL;DR)

Make the loader download fail with the HTTP error instead of saving the error page and failing later in tar.

The Issue

curl -L without --fail saves a 4xx/5xx response as ioncube_loaders.tar.gz, and the build then fails with gzip: stdin: not in gzip format, which doesn't say what went wrong.

How This PR Solves The Issue

Use curl -fsSL --retry 3, so curl retries transient errors and prints the HTTP status if the download fails.

Manual Testing Instructions

ddev add-on get ddev/ddev-ioncube --pr 75
ddev restart --no-cache
ddev php -v

Automated Testing Overview

No new tests, the existing tests cover the download.

Release/Deployment Notes

None.

## Short Summary (TL;DR)

Make the loader download fail with the HTTP error instead of saving the error page and failing later in `tar`.

## The Issue

- Related to ddev/ddev-nvm#6

`curl -L` without `--fail` saves a 4xx/5xx response as `ioncube_loaders.tar.gz`, and the build then fails with `gzip: stdin: not in gzip format`, which doesn't say what went wrong.

## How This PR Solves The Issue

Use `curl -fsSL --retry 3`, so curl retries transient errors and prints the HTTP status if the download fails.

## Manual Testing Instructions

```bash
ddev add-on get ddev/ddev-ioncube --pr 75
ddev restart --no-cache
ddev php -v
```

## Automated Testing Overview

No new tests, the existing tests cover the download.

## Release/Deployment Notes

None.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@stasadev
stasadev merged commit 3c75308 into main Oct 16, 2026
4 checks passed
@stasadev
stasadev deleted the 20261016_stasadev_curl_fail branch October 16, 2026 10:15
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