Skip to content
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

Composer install not downloading in parallel #204

Open
stephan-cream opened this issue Nov 25, 2019 · 7 comments
Open

Composer install not downloading in parallel #204

stephan-cream opened this issue Nov 25, 2019 · 7 comments

Comments

@stephan-cream
Copy link

System information:

  • PHP 7.1, 7.2, 7.3 (tested all three)
  • composer 1.9.1
  • MacOS Mojave 10.14.5

How to reproduce:

  • Install PHP 7.1, 7.2 or 7.3 (optionally via Homebrew: brew tap henkrehorst/homebrew-php && brew install [email protected]).
  • Install composer 1.9.1 (optionally via Homebrew: brew install composer)
  • Install prestissimo through composer global require hirak/prestissimo
  • Go to a composer project with multiple modules and run composer install.

Expected result

  1. Parallel downloading of packages for modules.
  2. Installing modules through pre-downloaded packages.
    e.g: Installing eloquent/enumeration (5.1.1): Loading from cache

Actual result

  1. Individual module download and install.
    e.g: Installing eloquent/enumeration (5.1.1): Downloading (75%)
@AdrianHL
Copy link

AdrianHL commented Apr 1, 2020

Same situation here.

@kubawerlos
Copy link
Contributor

@AdrianHL what version of prestissimo do you use? In 0.3.10 this was added.

@AdrianHL
Copy link

AdrianHL commented Apr 1, 2020

I'm using 0.3.10.

See output below

Changed current directory to /root/.composer
    1/5:        http://repo.packagist.org/p/provider-latest$8ceb2badbc89452e5e2b5adca7cc3da28734101ac2c3ff4dcfe3b36f97f3d84b.json
    2/5:        http://repo.packagist.org/p/provider-2019-07$5c9eb28305da605719818d18142541f6dec37eeaae135a9ed424b9a057c916fc.json
    3/5:        http://repo.packagist.org/p/provider-2019-10$3029eb3bdc0f06f2226b56aa41c6937e6181d93e6f8b762860d2cfcb96df251a.json
    4/5:        http://repo.packagist.org/p/provider-2020-01$4ed89a9ace727e338e45d11a3bfb2168f195c9b9a1906dac785cb05f8fd4c711.json
    5/5:        http://repo.packagist.org/p/provider-2019$3a7b8497ad4a6094793641da69678b0c788362de3fd7120120fcf2cd74beadc6.json
    Finished: success: 5, skipped: 0, failure: 0, total: 5
Using version ^0.3.10 for hirak/prestissimo
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Nothing to install or update
Generating autoload files
/src # php -d memory_limit=4096M /bin/composer install
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
    1/13:       https://codeload.github.com/spatie/array-to-xml/legacy.zip/934a35b7505059830a515ab9b06fa25fa9dab0bf
    2/13:       https://codeload.github.com/DivineOmega/DO-File-Cache-PSR-6/legacy.zip/18f9807d0491d093e9a12741afb40257d92f017e
    3/13:       https://codeload.github.com/PHPOffice/Common/legacy.zip/edb5d32b1e3400a35a5c91e2539ed6f6ce925e4d
    4/13:       https://codeload.github.com/rapidwebltd/php-uk-bank-holidays/legacy.zip/f44ed1f6de40c6b3deff5d5af9d5d6aa5f0ed383
    5/13:       https://codeload.github.com/zendframework/zend-escaper/legacy.zip/13f468ff824f3c83018b90aff892a1b3201383a9
    6/13:       https://codeload.github.com/ivanlanin/pclzip/legacy.zip/19dd1de9d3f5fc4d7d70175b4c344dee329f45fd
    7/13:       https://codeload.github.com/Setasign/FPDF/legacy.zip/2c68c9e6c034ac3187d25968790139a73184cdb1
    8/13:       https://codeload.github.com/Incenteev/ParameterHandler/legacy.zip/933c45a34814f27f2345c11c37d46b3ca7303550
    9/13:       https://codeload.github.com/DivineOmega/DO-File-Cache/legacy.zip/23696a8a4c3ebe2ab3d68a35b2698fa103f69334
    10/13:      https://codeload.github.com/Setasign/FPDI/legacy.zip/3c266002f8044f61b17329f7cd702d44d73f0f7f
    11/13:      https://codeload.github.com/zendframework/zend-validator/legacy.zip/81415511fe729e6de19a61936313cef43c80d337
    12/13:      https://codeload.github.com/PHPOffice/PHPWord/legacy.zip/0a3f873972defb304de4fa2f5f53156558c11a7a
    13/13:      https://codeload.github.com/zendframework/zend-stdlib/legacy.zip/d8ecb629a72da9f91bd95c5af006384823560b42
    Finished: success: 13, skipped: 0, failure: 0, total: 13
Package operations: 13 installs, 0 updates, 0 removals
  - Installing divineomega/do-file-cache (v2.0.6): Loading from cache
  - Installing incenteev/composer-parameter-handler (v2.1.3): Loading from cache
  - Installing pclzip/pclzip (2.8.2): Loading from cache
  - Installing zendframework/zend-stdlib (2.4.13): Loading from cache
  - Installing zendframework/zend-validator (2.4.13): Loading from cache
  - Installing zendframework/zend-escaper (2.4.13): Loading from cache
  - Installing phpoffice/common (0.2.9): Loading from cache
  - Installing phpoffice/phpword (v0.13.0): Loading from cache
  - Installing divineomega/do-file-cache-psr-6 (v2.0.1): Loading from cache
  - Installing rapidwebltd/php-uk-bank-holidays (v3.1.2): Loading from cache
  - Installing setasign/fpdf (1.8.1): Loading from cache
  - Installing setasign/fpdi (v2.2.0): Loading from cache
  - Installing spatie/array-to-xml (2.9.0): Loading from cache

Using

Composer version 1.9.1 2019-11-01 17:20:17
PHP 7.3.11 (cli) (built: Oct 25 2019 03:29:07) ( NTS )

@kubawerlos
Copy link
Contributor

From this output it looks prestissimo is working.

@morcano
Copy link

morcano commented Apr 16, 2020

Hey! Seems like that issue is actual:
Not parallel downloading...
UPD. I'm using docker container with Alpine Linux

@flolivaud
Copy link

@morcano can you try without the --no-plugins --no-scripts

@morcano
Copy link

morcano commented Apr 16, 2020

@morcano can you try without the --no-plugins --no-scripts

Work like a charm, thanks!

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

No branches or pull requests

5 participants