Indefinite loop #2527

66Ton99 opened this Issue Dec 25, 2013 · 4 comments


None yet
2 participants

66Ton99 commented Dec 25, 2013

composer install stucks here

example of composer.json

    "name": "test/lib",
    "type": "symfony-bundle",
    "license": "MIT",
    "require": {
        "php": ">=5.3.2",
        "friendsofsymfony/rest-bundle": "dev-master",
        "nelmio/api-doc-bundle": "dev-master",
        "braincrafted/validation-bundle": "dev-master",
        "credit-jeeves/simulation-bundle": "dev-master"
    "require-dev": {
        "symfony/framework-bundle": ">=2.1,<2.2-dev"
    "minimum-stability": "dev"

As I understood "credit-jeeves/simulation-bundle" or simular must be in cache of composer or installed before to reproduce it.

expected result

Problem 1
    - The requested package credit-jeeves/simulation-bundle could not be found in any version, there may be a typo in the package name.

Seldaek commented Dec 25, 2013

Can you explain this a bit further? It seems this credit-jeeves/simulation-bundle package does not exist. So is that the issue? If you have one installed that doesn't exist and run an update you get an endless loop?

66Ton99 commented Dec 25, 2013

I run install and it goes into endless loop, I did not run update.
Yes I understand that I missed "repositories" section in composer.json. credit-jeeves/simulation-bundle one of my custom lib which I use on my machine but for new package without "repositories" section composer goes into endless loop.
Dirty hack for this:

            $attempts = 10;

            for ($i = 0, $n = 0; $n < count($this->rules); $i++, $n++) {
                if ($i == count($this->rules)) {
                    $i = 0;
                    if ($attempts-- < 0) {

Seldaek commented Dec 25, 2013

Could you explain with clear steps to reproduce the issue? Is adding any unknown package then running install (do you have a composer.lock or not when you run install? Because if not it is equivalent to an update) enough to trigger it?

66Ton99 commented Dec 25, 2013

Yes, it does not have composer.lock and yes, it stuck on update too.
I will try to write steps to reproduce.

Seldaek closed this Apr 13, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment