pborreli / composer-service

Composer as a service
MIT License
175 stars 18 forks source link

let's remove the cache and catch some errors #114

Open cordoval opened 10 years ago

cordoval commented 10 years ago

some errors like

  [RuntimeException]
  Failed to clone git@github.com:event-centric/EventCentric.Core.git via git, https, ssh protocols, aborting.

  - git://github.com/event-centric/EventCentric.Core.git
    fatal: No such remote 'composer'

  - https://github.com/event-centric/EventCentric.Core.git
    fatal: No such remote 'composer'

  - git@github.com:event-centric/EventCentric.Core.git
    fatal: No such remote 'composer'

are not catched and just give a Fatal error during composer update

Also i noticed a weirdness in the caching, it seems it is reusing some of the global caching, so before i had that coming up from my fork, then it changed but the composer was still being fooled by it thinking that was also still from my fork.

I propose rm -rf ~/.composer every time so that composer is properly sandboxedly executed :+1:

cordoval commented 10 years ago

reproduce with:

{
    "autoload": {
        "psr-4": { "MyPrecious\\": "src/" }
    },
    "require": {
        "symfony/symfony": "~2.5.1",
        "doctrine/orm": "~2.5@dev",
        "twig/extensions": "~1.0.0",
        "incenteev/composer-parameter-handler": "~2.0.0",
        "symfony/assetic-bundle": "~2.3.0",
        "symfony/monolog-bundle": "~2.6.0",
        "aequasi/environment": "~0.4.0",
        "winzou/state-machine-bundle": "~0.1.3",
        "doctrine/doctrine-bundle": "~1.3@dev",
        "doctrine/dbal": "~2.5@dev",
        "hautelook/alice-bundle": "~0.1.5",
        "event-centric/EventCentric.Core": "dev-eventstore-redesign@dev",
        "zfr/rbac": "~1.2.0",
        "friendsofsymfony/user-bundle": "dev-master as 1.3"
    },
    "config": {
        "vendor-dir": "./deps"
    },
    "repositories": [
        {
            "type": "vcs",
            "url": "git@github.com:event-centric/EventCentric.Core.git"
        }
    ]
}

I gotcha @pborreli :dancers:

pborreli commented 10 years ago

thanks @cordoval i will take a look at it asap

cordoval commented 10 years ago

you are rocking it @pborreli :+1: let me know if i need to step up to take action, i don't want to just be a taker only but also a giver :dancer: