GromNaN / FacebookServiceProvider

Facebook API and connect integration into your Silex applications
MIT License
25 stars 6 forks source link

Dependency resolution problem with composer #4

Closed nohum closed 10 years ago

nohum commented 10 years ago

Hello,

Using your service provider (version "dev-master") with the Silex kitchen edition (https://github.com/lyrixx/Silex-Kitchen-Edition) is not possible, as composer fails with the following error:

Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - symfony/twig-bundle v2.2.9 requires symfony/twig-bridge 2.2.* -> no matching package found.
    - symfony/twig-bundle v2.2.8 requires symfony/twig-bridge 2.2.* -> no matching package found.
    - symfony/twig-bundle v2.2.7 requires symfony/twig-bridge 2.2.* -> no matching package found.
    - symfony/twig-bundle v2.2.6 requires symfony/twig-bridge 2.2.* -> no matching package found.
    - symfony/twig-bundle v2.2.5 requires symfony/twig-bridge 2.2.* -> no matching package found.
    - symfony/twig-bundle v2.2.4 requires symfony/twig-bridge 2.2.* -> no matching package found.
    - symfony/twig-bundle v2.2.3 requires symfony/twig-bridge 2.2.* -> no matching package found.
    - symfony/twig-bundle v2.2.2 requires symfony/twig-bridge 2.2.* -> no matching package found.
    - symfony/twig-bundle v2.2.11 requires symfony/twig-bridge 2.2.* -> no matching package found.
    - symfony/twig-bundle v2.2.10 requires symfony/twig-bridge 2.2.* -> no matching package found.
    - symfony/twig-bundle v2.2.1 requires symfony/twig-bridge 2.2.* -> no matching package found.
    - symfony/twig-bundle v2.2.0 requires symfony/twig-bridge 2.2.* -> no matching package found.
    - symfony/twig-bundle v2.1.9 requires symfony/twig-bridge 2.1.* -> no matching package found.
    - symfony/twig-bundle v2.1.8 requires symfony/twig-bridge 2.1.* -> no matching package found.
    - symfony/twig-bundle v2.1.7 requires symfony/twig-bridge 2.1.* -> no matching package found.
    - symfony/twig-bundle v2.1.6 requires symfony/twig-bridge 2.1.* -> no matching package found.
    - symfony/twig-bundle v2.1.5 requires symfony/twig-bridge 2.1.* -> no matching package found.
    - symfony/twig-bundle v2.1.4 requires symfony/twig-bridge 2.1.* -> no matching package found.
    - symfony/twig-bundle v2.1.3 requires symfony/twig-bridge 2.1.* -> no matching package found.
    - symfony/twig-bundle v2.1.2 requires symfony/twig-bridge 2.1.* -> no matching package found.
    - symfony/twig-bundle v2.1.13 requires symfony/twig-bridge 2.1.* -> no matching package found.
    - symfony/twig-bundle v2.1.12 requires symfony/twig-bridge 2.1.* -> no matching package found.
    - symfony/twig-bundle v2.1.11 requires symfony/twig-bridge 2.1.* -> no matching package found.
    - symfony/twig-bundle v2.1.10 requires symfony/twig-bridge 2.1.* -> no matching package found.
    - symfony/twig-bundle v2.1.1 requires symfony/twig-bridge 2.1.* -> no matching package found.
    - symfony/twig-bundle v2.1.0 requires symfony/twig-bridge v2.1.0 -> no matching package found.
    - grom/facebook-service-provider dev-master requires friendsofsymfony/facebook-bundle ~1.1.0 -> satisfiable by friendsofsymfony/facebook-bundle[1.1.0, 1.1.1].
    - friendsofsymfony/facebook-bundle 1.1.0 requires symfony/twig-bundle >=2.1,<2.3 -> satisfiable by symfony/twig-bundle[v2.1.0, v2.1.1, v2.1.10, v2.1.11, v2.1.12, v2.1.13, v2.1.2, v2.1.3, v2.1.4, v2.1.5, v2.1.6, v2.1.7, v2.1.8, v2.1.9, v2.2.0, v2.2.1, v2.2.10, v2.2.11, v2.2.2, v2.2.3, v2.2.4, v2.2.5, v2.2.6, v2.2.7, v2.2.8, v2.2.9].
    - friendsofsymfony/facebook-bundle 1.1.1 requires symfony/twig-bundle >=2.1,<2.3 -> satisfiable by symfony/twig-bundle[v2.1.0, v2.1.1, v2.1.10, v2.1.11, v2.1.12, v2.1.13, v2.1.2, v2.1.3, v2.1.4, v2.1.5, v2.1.6, v2.1.7, v2.1.8, v2.1.9, v2.2.0, v2.2.1, v2.2.10, v2.2.11, v2.2.2, v2.2.3, v2.2.4, v2.2.5, v2.2.6, v2.2.7, v2.2.8, v2.2.9].
    - Installation request for grom/facebook-service-provider dev-master -> satisfiable by grom/facebook-service-provider[dev-master].

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.

Read <http://getcomposer.org/doc/articles/troubleshooting.md> for further common problems.

Take this composer.json to reproduce the error (that is a stripped version):

{
    "name"        : "test/test",
    "type"        : "project",
    "description" : "test",
    "require": {
        "doctrine/dbal"         : "~2.3",
        "monolog/monolog"       : "~1.6",
        "silex/silex"           : "~1.1",
        "symfony/config"        : "~2.3",
        "symfony/console"       : "~2.3",
        "symfony/form"          : "~2.3",
        "symfony/finder"        : "~2.2",
        "symfony/security"      : "~2.3",
        "symfony/translation"   : "~2.3",
        "symfony/twig-bridge"   : "~2.3",
        "symfony/validator"     : "~2.3",
        "symfony/yaml"          : "~2.3",
        "twig/twig"             : "~1.10",
        "grom/facebook-service-provider": "dev-master"
    },
    "autoload": {
        "psr-0": {
            "SKE": "src/"
        }
    }
}

As far as I can tell from looking at the dependencies of the friendsofsymfony/facebook-bundle, the version 1.1 (required in your composer.json) clashes with the dependencies in my provided example composer.json.

I think the problem is the version-specifier for the facebook-bundle in your composer.json only including minor-versions. Maybe this entry would be correct:

"friendsofsymfony/facebook-bundle": "~1.1",
GromNaN commented 10 years ago

Thanks, fixed.