php unit freezes on composer update
newtonianb opened this issue · comments
newtonianb commented
I wanted to experiment with a couple changes so what I did is instead of including wardrobe cms in my composer.json I cloned the project to my workbench and substituted
"laravel/framework": "4.0.*",
for
"illuminate/support": "4.0.x",
"illuminate/view": "4.0.x",
However everytime I run composer update it freezes on phpunit. When I removed php unit it works ok.
Updating dependencies (including require-dev)
- Installing phpunit/phpunit (3.7.x-dev aa4789d)
Cloning aa4789d63dc5fd8f2036e5867b94e481b201c807
[Symfony\Component\Process\Exception\ProcessTimedOutException]
The process "git clone "https://github.com/sebastianbergmann/phpunit.git" "P:\WardrobeProjectvendor\prj\workbench\wardrobe-core\vendor\phpunit/phpunit" && cd /D "P:\WardrobeProjectvendor\prj\workbench\wardrobe-core\vendor\phpunit/phpunit" && git remote add composer "https://github.com/sebastianbergmann/phpunit.git" && git fetch composer" exceeded the timeout of 300 seconds.
pdate [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--lock] [--no-plugins] [--no-custom-installers] [--no-scripts] [--no-progress] [--with-dependencies] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [packages1] ... [packagesN]
Adrian Mihai commented
you could try
composer update --prefer-dist
This is the opposite of --prefer-source
, and might speed up your composer update/
See more here: http://getcomposer.org/doc/03-cli.md#update
OR
an alternative solution would be to increase max script run time in your php.ini, although I wouldn't recommend this.