-
Notifications
You must be signed in to change notification settings - Fork 152
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
drupal-scaffold plugin fails after latest image release #923
Comments
looks like others have the same issue: |
opened up an issue in |
opened an issue at curl: |
actually I realized that our PHP Images are running an As soon as building is confirmed I will hotrelease new php images. |
@Schnitzel Thank you for looking into this urgently! I can confirm on my side that new images solve the problem. Please consider this resolved. Thank you |
Describe the bug
For Drupal 8, I'm using
drupal-scaffold
plugin (https://github.com/drupal-composer/drupal-scaffold). This plugin downloads several Drupal files from the drupal.org repository into current Drupal project docroot.The problem is that after recent images release the plugin stopped working, reporting the following message
This problem appears only if
hirak/prestissimo
package is installed (and it is installed into Lagoon php images).drupal-scaffold
has a class that supportshirak/prestissimo
and uses it for parallel downloads. Thehirak/prestissimo
package uses PHP'scurl_multi_*
functions to use unblocking parallel downloads.http://php.net/manual/en/function.curl-multi-init.php
After debugging and setting curl option to be verbose, the following output was produced:
Verbose output from PHPs curl:
This issue has been replicated in 4 different environments with
amazeeio/php:7.1-cli-drupal
,amazeeio/php:7.2-cli-drupal
, andamazeeio/php:7.3-cli-drupal
images.To Reproduce
Steps to reproduce the behavior:
docker pull amazeeio/php:7.2-cli-drupal
docker run --rm --interactive --tty <IMAGE ID HERE> bash
composer create-project drupal-composer/drupal-project:8.x-dev some-dir --no-interaction --ignore-platform-reqs
Expected behavior
The command should complete successfully
Temp workaround
Uninstall
hirak/prestissimo
from the image during the build, but this will significantly slow down the build process.The place where the downloading error originates is this https://github.com/drupal-composer/drupal-scaffold/blob/master/src/PrestissimoFileFetcher.php#L64
The text was updated successfully, but these errors were encountered: