docker4drupal icon indicating copy to clipboard operation
docker4drupal copied to clipboard

Composer very slow fetching data from repo.packagist.org

Open ericmulder1980 opened this issue 4 years ago • 1 comments

OS type macOS

Drupal version 8

Codebase mounted codebase

Describe the bug When i run composer from the php container it is extremely slow when fetching data from packagist.org. I did some Google investagating and came up with the issue that downloading through http:// is the culprit. Somehow while fetching data from packagist it switches from https to http making it slow enough to eventually time-out. I have this issue with on several different system, different internet connections and different projects.

The command below forces downloading package data through https and fixes the issue for me. Currently i need to run this every time i spin up a PHP container. It would be nice if this could be added to the PHP container image.

More information here : https://github.com/composer/composer/issues/8205

Kind regards, Eric Mulder

ericmulder1980 avatar Jun 25 '20 12:06 ericmulder1980

Related: https://github.com/wodby/drupal-php/issues/75

johandenhollander avatar Sep 22 '20 09:09 johandenhollander