Composer: Le compositeur est vraiment lent

Créé le 23 mai 2017  ·  3Commentaires  ·  Source: composer/composer

Aujourd'hui, une commande composer install prend beaucoup de temps pour se terminer. Cela se produit à la fois au niveau mondial et au niveau local.

Le composer diagnose est tout ok.

Lorsque j'exécute cette commande (mais c'est la même chose avec un installateur local):

$ composer global require  hirak/prestissimo --profile -vvv

J'obtiens la sortie suivante :

[1.4MB/0.00s] Changed current directory to /home/vagrant/.config/composer
Failed to initialize global composer: Composer could not find the config file: /home/vagrant/.config/composer/composer.json
To initialize a project, please create a composer.json file as described in the https://getcomposer.org/ "Getting Started" section
Running 1.4.2 (2017-05-17 08:17:52) with PHP 7.1.5-1+deb.sury.org~xenial+2 on Linux / 4.4.0-31-generic
[1.7MB/0.01s] Reading ./composer.json
[1.7MB/0.01s] Loading config file ./composer.json
[2.0MB/0.01s] Checked CA file /etc/ssl/certs/ca-certificates.crt: valid
[1.9MB/0.02s] Executing command (/home/vagrant/.config/composer): git branch --no-color --no-abbrev -v
[1.9MB/0.03s] Executing command (/home/vagrant/.config/composer): git describe --exact-match --tags
[1.9MB/0.03s] Executing command (/home/vagrant/.config/composer): git log --pretty="%H" -n1 HEAD
[1.9MB/0.04s] Executing command (/home/vagrant/.config/composer): hg branch
[1.9MB/0.04s] Executing command (/home/vagrant/.config/composer): fossil branch list
[1.9MB/0.04s] Executing command (/home/vagrant/.config/composer): fossil tag list
[1.9MB/0.05s] Executing command (/home/vagrant/.config/composer): svn info --xml
[2.4MB/0.09s] Downloading https://packagist.org/packages.json
[2.4MB/7.84s] Writing /home/vagrant/.cache/composer/repo/https---packagist.org/packages.json into cache
[2.4MB/7.84s] Downloading http://packagist.org/p/provider-2013%24442e1d5fa0fdbf77855cc363b024994a3e92a2f5099e5138b9c5777ae486703c.json
[2.5MB/108.65s] Downloading http://packagist.org/p/provider-2013%24442e1d5fa0fdbf77855cc363b024994a3e92a2f5099e5138b9c5777ae486703c.json

Il bloque dans la dernière ligne, mais c'est très aléatoire, car si je le laisse pendant environ 30 minutes, il continue à récupérer d'autres URI, mais il s'arrête au hasard sur d'autres URI et cela prend parfois plus de 30 minutes.

Une idée de pourquoi cela se produit-il? Cela ne semble concerner que mon ordinateur (à la fois vagabond et local), mais si j'essaye avec une autre machine, cela fonctionne normalement. Que puis-je vérifier ?

Commentaire le plus utile

Veuillez suivre https://github.com/composer/composer/issues/6342 pour le numéro actuel

Tous les 3 commentaires

Je suis en train

Failed to decode response: zlib_decode(): data error
Retrying with degraded mode, check https://getcomposer.org/doc/articles/troubleshooting.md#degraded-mode for more info

avec travis construit

Veuillez suivre https://github.com/composer/composer/issues/6342 pour le numéro actuel

Quoi qu'il en soit, après un redémarrage complet de mon ordinateur portable, c'était réparé ! Je ne sais pas pourquoi, mais c'est bon pour moi maintenant. Je vais suivre l'autre problème, merci.

Cette page vous a été utile?
0 / 5 - 0 notes