kaliop-uk / ezmigrationbundle

This bundle makes it easy to handle eZPlatform / eZPublish5 content upgrades/migrations
GNU General Public License v2.0
53 stars 81 forks source link

Cannot install into a new installation of ezplatform: nikic/php-parser #118

Closed jdcrecur closed 7 years ago

jdcrecur commented 7 years ago

After setting a new installation of ezplatform up I cannot install this migration tool.

This is the composer file of the new ez install, plus the additional line for this migration tool in the require array:

{
    "name": "ezsystems/ezplatform",
    "description": "eZ Platform distribution",
    "homepage": "https://github.com/ezsystems/ezplatform",
    "license": "GPL-2.0",
    "type": "project",
    "authors": [
        {
            "name": "eZ dev-team & eZ Community",
            "homepage": "https://github.com/ezsystems/ezplatform/contributors"
        }
    ],
    "replace": {
        "ezsystems/ezpublish-community": "*"
    },
    "autoload": {
        "psr-0": { "": "src/" }
    },
    "require": {
        "php": "~5.6|~7.0",
        "symfony/symfony": "~2.8",
        "twig/extensions": "~1.4",
        "symfony/assetic-bundle": "~2.8",
        "symfony/swiftmailer-bundle": "~2.5",
        "symfony/monolog-bundle": "~2.12|~3.0",
        "sensio/distribution-bundle": "^3.0.36|^4.0.6|^5.0",
        "sensio/generator-bundle": "^2.3|^3.0",
        "incenteev/composer-parameter-handler": "~2.1",
        "tedivm/stash-bundle": "~0.6",
        "ezsystems/ezpublish-kernel": "^6.9",
        "ezsystems/repository-forms": "^1.7",
        "ezsystems/ezplatform-solr-search-engine": "^1.3",
        "ezsystems/platform-ui-bundle": "^1.9",
        "ezsystems/ez-support-tools": "~0.1.0",
        "ezsystems/ezplatform-http-cache": "^0.1",
        "ezplatform-i18n/ezplatform-i18n-ach_ug": "^1.1",
        "ezsystems/ezplatform-design-engine": "^1.0",
        "ezsystems/ezplatform-multi-file-upload": "^0.1",
        "egulias/listeners-debug-command-bundle": "~1.9",
        "white-october/pagerfanta-bundle": "1.0.*",
        "hautelook/templated-uri-bundle": "~1.0 | ~2.0",
        "doctrine/doctrine-bundle": "~1.5",
        "sensio/framework-extra-bundle": "~3.0",
        "ezsystems/content-on-the-fly-prototype": "~0.1.7",
        "willdurand/js-translation-bundle": "^2.6.4",
        "kaliop/ezmigrationbundle": "^3.0"
    },
    "require-dev": {
        "ezsystems/ezplatform-i18n": "^1.0rc",
        "behat/behat": "~3.2",
        "behat/symfony2-extension": "~2.0",
        "behat/mink-extension": "~2.0",
        "behat/mink-goutte-driver": "~1.0",
        "behat/mink-selenium2-driver": "~1.0",
        "jarnaiz/behat-junit-formatter": "^1.3",
        "ezsystems/behatbundle": "^6.3"
    },
    "suggest": {
        "ezsystems/legacy-bridge": "Provides the full legacy backoffice and legacy features"
    },
    "scripts": {
        "build": [
            "Incenteev\\ParameterHandler\\ScriptHandler::buildParameters",
            "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::buildBootstrap",
            "eZ\\Bundle\\EzPublishCoreBundle\\Composer\\ScriptHandler::clearCache",
            "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installAssets",
            "eZ\\Bundle\\EzPublishCoreBundle\\Composer\\ScriptHandler::dumpAssets",
            "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installRequirementsFile"
        ],
        "post-install-cmd": [
            "@build"
        ],
        "post-update-cmd": [
            "@build"
        ],
        "post-create-project-cmd": [
            "eZ\\Bundle\\EzPublishCoreBundle\\Composer\\ScriptHandler::installWelcomeText"
        ]
    },
    "config": {
        "process-timeout": 3000,
        "bin-dir": "bin"
    },
    "extra": {
        "symfony-app-dir": "app",
        "symfony-web-dir": "web",
        "___symfony-assets-install": "One of 'symlink', 'relative' (symlinks) or 'hard'",
        "symfony-assets-install": "relative",
        "incenteev-parameters": {
            "keep-outdated": true,
            "file": "app/config/parameters.yml"
        },
        "branch-alias": {
            "dev-master": "1.10.x-dev"
        }
    }
}

This is the output when trying to install, there appears to be a conflict regarding the nikic/php-parser package:

composer update kaliop/ezmigrationbundle
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
    - Conclusion: don't install kaliop/ezmigrationbundle 3.6.3
    - Conclusion: don't install kaliop/ezmigrationbundle 3.6.2
    - Conclusion: don't install kaliop/ezmigrationbundle 3.6.1
    - Conclusion: don't install kaliop/ezmigrationbundle 3.6.0
    - Conclusion: don't install kaliop/ezmigrationbundle 3.5.0
    - Conclusion: don't install kaliop/ezmigrationbundle 3.4.0
    - Conclusion: don't install kaliop/ezmigrationbundle 3.3.0
    - Conclusion: don't install kaliop/ezmigrationbundle 3.2.2
    - Conclusion: don't install kaliop/ezmigrationbundle 3.2.1
    - Conclusion: don't install kaliop/ezmigrationbundle 3.2.0
    - Conclusion: don't install kaliop/ezmigrationbundle 3.1.0
    - Conclusion: don't install kaliop/ezmigrationbundle 3.0.3
    - Conclusion: don't install kaliop/ezmigrationbundle 3.0.2
    - Conclusion: don't install kaliop/ezmigrationbundle 3.0.1
    - Conclusion: remove nikic/php-parser v3.0.5
    - Installation request for kaliop/ezmigrationbundle ^3.0 -> satisfiable by kaliop/ezmigrationbundle[3.0.0, 3.0.1, 3.0.2, 3.0.3, 3.1.0, 3.2.0, 3.2.1, 3.2.2, 3.3.0, 3.4.0, 3.5.0, 3.6.0, 3.6.1, 3.6.2, 3.6.3].
    - Conclusion: don't install nikic/php-parser v3.0.5
    - kaliop/ezmigrationbundle 3.0.0 requires nikic/php-parser 2.* -> satisfiable by nikic/php-parser[v2.0.0, v2.0.1, v2.1.0, v2.1.1].
    - Can only install one of: nikic/php-parser[v2.0.0, v3.0.5].
    - Can only install one of: nikic/php-parser[v2.0.1, v3.0.5].
    - Can only install one of: nikic/php-parser[v2.1.0, v3.0.5].
    - Can only install one of: nikic/php-parser[v2.1.1, v3.0.5].
    - Installation request for nikic/php-parser (locked at v3.0.5) -> satisfiable by nikic/php-parser[v3.0.5].
gggeek commented 7 years ago

I think this is already fixed in branch 4.0, which is out in RC state only. Could you try installing that version of ez migration bundle and see if all works?

jdcrecur commented 7 years ago

Ah ok brilliant, sure will test.

jdcrecur commented 7 years ago

Yup setting the "minimum-stability": "RC", in the composer.json and grabbing the latest code fixed it all.

A little nervous leaving this as a min stability level, but will do for dev ;)

Cheers, John

gggeek commented 7 years ago

I agree about min-stability. Just make sure you add prefer-stable as well, so that you dont get beta versions of other packages. To reassure you, the current status of 4.0, as far as I am concerned is: "done, but want to add more tests before release".