marcelog / PAMI

PHP Asterisk Manager Interface ( AMI ) supports synchronous command ( action )/ responses and asynchronous events using the pattern observer-listener. Supports commands with responses with multiple events. Very suitable for development of operator consoles and / or asterisk / channels / peers monitoring through SOA, etc
http://marcelog.github.com/PAMI
Apache License 2.0
405 stars 282 forks source link

Install via composer is broken for the last version of composer #48

Closed pliniocsfernandes closed 10 years ago

pliniocsfernandes commented 10 years ago

I used sudo composer self-update to update composer:

Updating to version b808ff5e28944ab2e25e050f8df848c5842bc14c.

Then I tried using composer update and got the following error:

Your requirements could not be resolved to an installable set of packages.

Problem 1
    - Installation request for marcelog/pami dev-master -> satisfiable by marcelog/pami[dev-master].
    - marcelog/pami dev-master requires pear-log4php/apache_log4php >=2.1.0 -> no matching package found.

Potential causes:
 - A typo in the package name
 - The package is not available in a stable-enough version according to your minimum-stability setting
   see <https://groups.google.com/d/topic/composer-dev/_g3ASeIFlrc/discussion> for more details.

So I used sudo composer self-update --rollback to revert the composer version:

Rolling back to version 2014-02-07_09-59-35-7343198.

And the composer update worked normally again.

The setup I'm using on composer.json is the same described on the README:

{
    "require": {
        "marcelog/pami": "dev-master"
    },
    "repositories": [
    {
      "type": "pear",
      "url": "http://pear.apache.org/log4php/"
    }]
}
marcelog commented 10 years ago

Hi :)

Could you try changing your composer.json to point to a testing branch that I just setup? It looks like I had to update the composer.lock file, but also it seems that the root project (your code, that is) needs to include log4php as a dependency, since it's not coming from packagist

If you confirm that everything works ok, I'll merge.

This is the composer.json that I tried:

{
    "require": {
        "marcelog/pami": "dev-marcelog_composer_test",
        "pear-log4php/Apache_log4php": ">=2.1.0"
    },
    "repositories": [
    {
      "type": "pear",
      "url": "http://pear.apache.org/log4php/"
    }]
}

Thanks in advance :)

pliniocsfernandes commented 10 years ago

I tried the composer self-update again:

Use composer self-update --rollback to return to version 7343198817f365b1676ced0f353808f0e408ff9a

And now the issue seems to be gone. Taking a look at the last composer commits I think that my problem was related to a failed HTTP request.

Sorry for the trouble and thanks for the help. :)

zconkle commented 10 years ago

We are still seeing this issue. I am having to revert back to composer 1.0.0-alpha8 to get composer to install. Can we not use this repo in place of the pear repo: https://packagist.org/packages/apache/log4php