oroinc / platform

Main OroPlatform package with core functionality.
MIT License
629 stars 351 forks source link

Can't install alpha4 with composer (requirement confilct) #8

Closed LRotherfield closed 11 years ago

LRotherfield commented 11 years ago

I have been trying to install the alpha4 but I am getting a requirement conflict from composer:

  Problem 1
    - Conclusion: don't install oro/platform 1.0.0-alpha4
    - sonata-project/admin-bundle dev-master requires knplabs/knp-menu-bundle ~1.1 -> satisfiable by knplabs/knp-menu-bundle[1.1.x-dev, v1.1.0, v1.1.1, v1.1.2].
    - Can only install one of: knplabs/knp-menu-bundle[dev-master, 1.1.x-dev].
    - Can only install one of: knplabs/knp-menu-bundle[v1.1.0, dev-master].
    - Can only install one of: knplabs/knp-menu-bundle[v1.1.1, dev-master].
    - Can only install one of: knplabs/knp-menu-bundle[v1.1.2, dev-master].
    - oro/platform 1.0.0-alpha4 requires knplabs/knp-menu-bundle dev-master -> satisfiable by knplabs/knp-menu-bundle[dev-master].
    - oro/platform 1.0.0-alpha4 requires sonata-project/admin-bundle dev-master -> satisfiable by sonata-project/admin-bundle[dev-master].
    - Installation request for oro/platform 1.0.0-alpha4 -> satisfiable by oro/platform[1.0.0-alpha4].

My composer.json looks like this:

{
    "name": "oro/platform-application",
    "description": "Oro Platform Empty Application",
    "autoload": {
        "psr-0": { "": "src/" }
    },
    "require": {
        "php": ">=5.3.3",
        "oro/platform": "1.0.0-alpha4"

    },
    "repositories": [
        {
            "type": "vcs",
            "url": "https://github.com/orocrm/platform.git",
            "branch": "master"
        }
    ],
    "scripts": {
        "post-install-cmd": [
            "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::buildBootstrap",
            "Symfony\\Cmf\\Bundle\\CreateBundle\\Composer\\ScriptHandler::downloadCreate",
            "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::clearCache",
            "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installAssets",
            "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installRequirementsFile",
            "php app/console fos:js-routing:dump --target=web/js/routes.js"
        ],
        "post-update-cmd": [
            "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::buildBootstrap",
            "Symfony\\Cmf\\Bundle\\CreateBundle\\Composer\\ScriptHandler::downloadCreate",
            "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::clearCache",
            "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installAssets",
            "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installRequirementsFile",
            "php app/console fos:js-routing:dump --target=web/js/routes.js"
        ]
    },
    "minimum-stability": "dev",
    "extra": {
        "symfony-app-dir": "app",
        "symfony-web-dir": "web"
    }
}
x86demon commented 11 years ago

composer use repositories list only from main composer.json All repositories listed inside dependent packages are ignored. To fix this problem add { "type": "vcs", "url": "https://github.com/orocrm/SonataAdminBundle.git" } into repositories section of your composer.json

LRotherfield commented 11 years ago

Great, thanks for the fix. Would be a good idea to have that extra repository in the readme example. Potentially, could you add your version of SonataAdminBundle to packagist and use it as a dependency rather than Sonata's version?

rgrebenchuk commented 11 years ago

We have removed SonataAdminBundle dependency from latest release