composer/composer — Issue #236: Composer fails with latest version
Author: andho
Created: 2012-01-20 13:17:22+00:00
State: open

Narrowed it down to 3bed815b19791afff93abf76ce38af92f3e39040

Error is below:

PHP Warning: Invalid argument supplied for foreach() in /home/likewise-open/ALLIEDINSURE/amjad/Projects/composer/src/Composer/Repository/Vcs/GitDriver.php on line 137
PHP Stack trace:
PHP 1. {main}() /home/likewise-open/ALLIEDINSURE/amjad/Projects/composer/bin/composer:0
PHP 2. Composer\Console\Application->run() /home/likewise-open/ALLIEDINSURE/amjad/Projects/composer/bin/composer:15
PHP 3. Symfony\Component\Console\Application->run() /home/likewise-open/ALLIEDINSURE/amjad/Projects/composer/src/Composer/Console/Application.php:57
PHP 4. Composer\Console\Application->doRun() /home/likewise-open/ALLIEDINSURE/amjad/Projects/composer/vendor/symfony/console/Symfony/Component/Console/Application.php:106
PHP 5. Symfony\Component\Console\Application->doRun() /home/likewise-open/ALLIEDINSURE/amjad/Projects/composer/src/Composer/Console/Application.php:68
PHP 6. Symfony\Component\Console\Command\Command->run() /home/likewise-open/ALLIEDINSURE/amjad/Projects/composer/vendor/symfony/console/Symfony/Component/Console/Application.php:193
PHP 7. Composer\Command\InstallCommand->execute() /home/likewise-open/ALLIEDINSURE/amjad/Projects/composer/vendor/symfony/console/Symfony/Component/Console/Command/Command.php:237
PHP 8. Composer\Command\InstallCommand->install() /home/likewise-open/ALLIEDINSURE/amjad/Projects/composer/src/Composer/Command/InstallCommand.php:59
PHP 9. Composer\DependencyResolver\Pool->addRepository() /home/likewise-open/ALLIEDINSURE/amjad/Projects/composer/src/Composer/Command/InstallCommand.php:82
PHP 10. Composer\Repository\ArrayRepository->getPackages() /home/likewise-open/ALLIEDINSURE/amjad/Projects/composer/src/Composer/DependencyResolver/Pool.php:38
PHP 11. Composer\Repository\VcsRepository->initialize() /home/likewise-open/ALLIEDINSURE/amjad/Projects/composer/src/Composer/Repository/ArrayRepository.php:116
PHP 12. Composer\Repository\VcsRepository->getDriver() /home/likewise-open/ALLIEDINSURE/amjad/Projects/composer/src/Composer/Repository/VcsRepository.php:69
PHP 13. Composer\Repository\Vcs\GitDriver->initialize() /home/likewise-open/ALLIEDINSURE/amjad/Projects/composer/src/Composer/Repository/VcsRepository.php:49
PHP 14. Composer\Repository\Vcs\GitDriver->getBranches() /home/likewise-open/ALLIEDINSURE/amjad/Projects/composer/src/Composer/Repository/Vcs/GitDriver.php:40
...
Installing dependencies

[UnexpectedValueException]
Package allied/ray-cqrs was not found in the package pool, check the name for typos.

install [--dev] [--dry-run] [--no-install-recommends] [--install-suggests]

The composer.json for the project:

{
"repositories": {
"ray-cqrs": {
"vcs": {
"url": "ssh://git@10.5.18.5/ray-cqrs.git"
}
}
},
"require": {
"php": ">=5.3.2",
"allied/ray-cqrs": "master"
}
}

I am loading a package from a custom git repository.