jhedstrom / DrupalDriver

A collection of drivers for controlling Drupal.
GNU General Public License v2.0
64 stars 97 forks source link

Cannot install with Drupal 9 #225

Open danepowell opened 4 years ago

danepowell commented 4 years ago

After the recent work to upgrade Drupal Extension and Drupal Driver dependencies such as Symfony 4, I would have expected to be able to install them in a D9 application. But I cannot, due to apparent conflicts related to the drupal/core-utility dependency.

I suspect the issue is Drupal Driver requires drupal/core-utility:^8.4, and since drupal/core replaces drupal/core-utility, Composer interprets this as a conflict with drupal/core:^9.

I'm using this command to require drupal-driver: composer require --dev --update-with-all-dependencies drupal/drupal-driver:dev-master

I'll post the Composer output and my composer.json below:

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

  Problem 1
    - Installation request for drupal/drupal-driver dev-master -> satisfiable by drupal/drupal-driver[dev-master].
    - Conclusion: remove drupal/core 9.0.0-beta1
    - Conclusion: don't install drupal/core 9.0.0-beta1
    - drupal/drupal-driver dev-master requires drupal/core-utility ^8.4 -> satisfiable by drupal/core[8.5.x-dev, 8.7.x-dev, 8.8.x-dev, 8.9.x-dev], drupal/core-utility[8.4.0, 8.4.0-alpha1, 8.4.0-beta1, 8.4.0-rc1, 8.4.0-rc2, 8.4.1, 8.4.2, 8.4.3, 8.4.4, 8.4.5, 8.4.6, 8.4.7, 8.4.8, 8.4.x-dev, 8.5.0, 8.5.0-alpha1, 8.5.0-beta1, 8.5.0-rc1, 8.5.1, 8.5.10, 8.5.11, 8.5.12, 8.5.13, 8.5.14, 8.5.15, 8.5.2, 8.5.3, 8.5.4, 8.5.5, 8.5.6, 8.5.7, 8.5.8, 8.5.9, 8.5.x-dev, 8.6.0, 8.6.0-alpha1, 8.6.0-beta1, 8.6.0-beta2, 8.6.0-rc1, 8.6.1, 8.6.10, 8.6.11, 8.6.12, 8.6.13, 8.6.14, 8.6.15, 8.6.16, 8.6.17, 8.6.18, 8.6.2, 8.6.3, 8.6.4, 8.6.5, 8.6.6, 8.6.7, 8.6.8, 8.6.9, 8.6.x-dev, 8.7.0, 8.7.0-alpha1, 8.7.0-alpha2, 8.7.0-beta1, 8.7.0-beta2, 8.7.0-rc1, 8.7.1, 8.7.10, 8.7.11, 8.7.12, 8.7.13, 8.7.2, 8.7.3, 8.7.4, 8.7.5, 8.7.6, 8.7.7, 8.7.8, 8.7.9, 8.7.x-dev, 8.8.0, 8.8.0-alpha1, 8.8.0-beta1, 8.8.0-rc1, 8.8.1, 8.8.2, 8.8.3, 8.8.4, 8.8.5, 8.8.x-dev, 8.9.0-beta1, 8.9.0-beta2, 8.9.x-dev].
    - Can only install one of: drupal/core[8.5.x-dev, 9.0.0-beta1].
    - Can only install one of: drupal/core[8.7.x-dev, 9.0.0-beta1].
    - Can only install one of: drupal/core[8.8.x-dev, 9.0.0-beta1].
    - Can only install one of: drupal/core[8.9.x-dev, 9.0.0-beta1].
    - don't install drupal/core-utility 8.4.0|don't install drupal/core 9.0.0-beta1
    - don't install drupal/core-utility 8.4.0-alpha1|don't install drupal/core 9.0.0-beta1
    - don't install drupal/core-utility 8.4.0-beta1|don't install drupal/core 9.0.0-beta1
    - don't install drupal/core-utility 8.4.0-rc1|don't install drupal/core 9.0.0-beta1
    - don't install drupal/core-utility 8.4.0-rc2|don't install drupal/core 9.0.0-beta1
    - don't install drupal/core-utility 8.4.1|don't install drupal/core 9.0.0-beta1
    - don't install drupal/core-utility 8.4.2|don't install drupal/core 9.0.0-beta1
    - don't install drupal/core-utility 8.4.3|don't install drupal/core 9.0.0-beta1
    - don't install drupal/core-utility 8.4.4|don't install drupal/core 9.0.0-beta1
    - don't install drupal/core-utility 8.4.5|don't install drupal/core 9.0.0-beta1
    - don't install drupal/core-utility 8.4.6|don't install drupal/core 9.0.0-beta1
    - don't install drupal/core-utility 8.4.7|don't install drupal/core 9.0.0-beta1
    - don't install drupal/core-utility 8.4.8|don't install drupal/core 9.0.0-beta1
    - don't install drupal/core-utility 8.4.x-dev|don't install drupal/core 9.0.0-beta1
    - don't install drupal/core-utility 8.5.0|don't install drupal/core 9.0.0-beta1
    - don't install drupal/core-utility 8.5.0-alpha1|don't install drupal/core 9.0.0-beta1
    - don't install drupal/core-utility 8.5.0-beta1|don't install drupal/core 9.0.0-beta1
    - don't install drupal/core-utility 8.5.0-rc1|don't install drupal/core 9.0.0-beta1
    - don't install drupal/core-utility 8.5.1|don't install drupal/core 9.0.0-beta1
    - don't install drupal/core-utility 8.5.10|don't install drupal/core 9.0.0-beta1
    - don't install drupal/core-utility 8.5.11|don't install drupal/core 9.0.0-beta1
    - don't install drupal/core-utility 8.5.12|don't install drupal/core 9.0.0-beta1
    - don't install drupal/core-utility 8.5.13|don't install drupal/core 9.0.0-beta1
    - don't install drupal/core-utility 8.5.14|don't install drupal/core 9.0.0-beta1
    - don't install drupal/core-utility 8.5.15|don't install drupal/core 9.0.0-beta1
    - don't install drupal/core-utility 8.5.2|don't install drupal/core 9.0.0-beta1
    - don't install drupal/core-utility 8.5.3|don't install drupal/core 9.0.0-beta1
    - don't install drupal/core-utility 8.5.4|don't install drupal/core 9.0.0-beta1
    - don't install drupal/core-utility 8.5.5|don't install drupal/core 9.0.0-beta1
    - don't install drupal/core-utility 8.5.6|don't install drupal/core 9.0.0-beta1
    - don't install drupal/core-utility 8.5.7|don't install drupal/core 9.0.0-beta1
    - don't install drupal/core-utility 8.5.8|don't install drupal/core 9.0.0-beta1
    - don't install drupal/core-utility 8.5.9|don't install drupal/core 9.0.0-beta1
    - don't install drupal/core-utility 8.5.x-dev|don't install drupal/core 9.0.0-beta1
    - don't install drupal/core-utility 8.6.0|don't install drupal/core 9.0.0-beta1
    - don't install drupal/core-utility 8.6.0-alpha1|don't install drupal/core 9.0.0-beta1
    - don't install drupal/core-utility 8.6.0-beta1|don't install drupal/core 9.0.0-beta1
    - don't install drupal/core-utility 8.6.0-beta2|don't install drupal/core 9.0.0-beta1
    - don't install drupal/core-utility 8.6.0-rc1|don't install drupal/core 9.0.0-beta1
    - don't install drupal/core-utility 8.6.1|don't install drupal/core 9.0.0-beta1
    - don't install drupal/core-utility 8.6.10|don't install drupal/core 9.0.0-beta1
    - don't install drupal/core-utility 8.6.11|don't install drupal/core 9.0.0-beta1
    - don't install drupal/core-utility 8.6.12|don't install drupal/core 9.0.0-beta1
    - don't install drupal/core-utility 8.6.13|don't install drupal/core 9.0.0-beta1
    - don't install drupal/core-utility 8.6.14|don't install drupal/core 9.0.0-beta1
    - don't install drupal/core-utility 8.6.15|don't install drupal/core 9.0.0-beta1
    - don't install drupal/core-utility 8.6.16|don't install drupal/core 9.0.0-beta1
    - don't install drupal/core-utility 8.6.17|don't install drupal/core 9.0.0-beta1
    - don't install drupal/core-utility 8.6.18|don't install drupal/core 9.0.0-beta1
    - don't install drupal/core-utility 8.6.2|don't install drupal/core 9.0.0-beta1
    - don't install drupal/core-utility 8.6.3|don't install drupal/core 9.0.0-beta1
    - don't install drupal/core-utility 8.6.4|don't install drupal/core 9.0.0-beta1
    - don't install drupal/core-utility 8.6.5|don't install drupal/core 9.0.0-beta1
    - don't install drupal/core-utility 8.6.6|don't install drupal/core 9.0.0-beta1
    - don't install drupal/core-utility 8.6.7|don't install drupal/core 9.0.0-beta1
    - don't install drupal/core-utility 8.6.8|don't install drupal/core 9.0.0-beta1
    - don't install drupal/core-utility 8.6.9|don't install drupal/core 9.0.0-beta1
    - don't install drupal/core-utility 8.6.x-dev|don't install drupal/core 9.0.0-beta1
    - don't install drupal/core-utility 8.7.0|don't install drupal/core 9.0.0-beta1
    - don't install drupal/core-utility 8.7.0-alpha1|don't install drupal/core 9.0.0-beta1
    - don't install drupal/core-utility 8.7.0-alpha2|don't install drupal/core 9.0.0-beta1
    - don't install drupal/core-utility 8.7.0-beta1|don't install drupal/core 9.0.0-beta1
    - don't install drupal/core-utility 8.7.0-beta2|don't install drupal/core 9.0.0-beta1
    - don't install drupal/core-utility 8.7.0-rc1|don't install drupal/core 9.0.0-beta1
    - don't install drupal/core-utility 8.7.1|don't install drupal/core 9.0.0-beta1
    - don't install drupal/core-utility 8.7.10|don't install drupal/core 9.0.0-beta1
    - don't install drupal/core-utility 8.7.11|don't install drupal/core 9.0.0-beta1
    - don't install drupal/core-utility 8.7.12|don't install drupal/core 9.0.0-beta1
    - don't install drupal/core-utility 8.7.13|don't install drupal/core 9.0.0-beta1
    - don't install drupal/core-utility 8.7.2|don't install drupal/core 9.0.0-beta1
    - don't install drupal/core-utility 8.7.3|don't install drupal/core 9.0.0-beta1
    - don't install drupal/core-utility 8.7.4|don't install drupal/core 9.0.0-beta1
    - don't install drupal/core-utility 8.7.5|don't install drupal/core 9.0.0-beta1
    - don't install drupal/core-utility 8.7.6|don't install drupal/core 9.0.0-beta1
    - don't install drupal/core-utility 8.7.7|don't install drupal/core 9.0.0-beta1
    - don't install drupal/core-utility 8.7.8|don't install drupal/core 9.0.0-beta1
    - don't install drupal/core-utility 8.7.9|don't install drupal/core 9.0.0-beta1
    - don't install drupal/core-utility 8.7.x-dev|don't install drupal/core 9.0.0-beta1
    - don't install drupal/core-utility 8.8.0|don't install drupal/core 9.0.0-beta1
    - don't install drupal/core-utility 8.8.0-alpha1|don't install drupal/core 9.0.0-beta1
    - don't install drupal/core-utility 8.8.0-beta1|don't install drupal/core 9.0.0-beta1
    - don't install drupal/core-utility 8.8.0-rc1|don't install drupal/core 9.0.0-beta1
    - don't install drupal/core-utility 8.8.1|don't install drupal/core 9.0.0-beta1
    - don't install drupal/core-utility 8.8.2|don't install drupal/core 9.0.0-beta1
    - don't install drupal/core-utility 8.8.3|don't install drupal/core 9.0.0-beta1
    - don't install drupal/core-utility 8.8.4|don't install drupal/core 9.0.0-beta1
    - don't install drupal/core-utility 8.8.5|don't install drupal/core 9.0.0-beta1
    - don't install drupal/core-utility 8.8.x-dev|don't install drupal/core 9.0.0-beta1
    - don't install drupal/core-utility 8.9.0-beta1|don't install drupal/core 9.0.0-beta1
    - don't install drupal/core-utility 8.9.0-beta2|don't install drupal/core 9.0.0-beta1
    - don't install drupal/core-utility 8.9.x-dev|don't install drupal/core 9.0.0-beta1
    - Installation request for drupal/core (locked at 9.0.0-beta1, required as ~9) -> satisfiable by drupal/core[9.0.0-beta1].
{
    "name": "acquia/blt-project",
    "type": "project",
    "description": "Project template for Drupal 8 sites built with BLT.",
    "license": "GPL-2.0-only",
    "require": {
        "php": ">=7.3",
        "acquia/blt": "12.9999999.9999999.9999999-dev",
        "drupal/core": "~9",
        "drupal/core-composer-scaffold": "^9.0.0-alpha1",
        "drupal/core-dev": "~9",
        "drupal/core-recommended": "^9.0.0-alpha1",
        "drush/drush": "dev-master || 10.x-dev || 9.x-dev || 9.5.x-dev",
        "mglaman/phpstan-drupal-deprecations": "^0.11.1",
        "nette/di": "^3.0"
    },
    "require-dev": {
        "acquia/blt-phpcs": "*",
        "behat/behat": "^3.1",
        "behat/gherkin": "^4.6.1",
        "bex/behat-screenshot": "^1.2",
        "dmore/behat-chrome-extension": "^1.0.0",
        "jarnaiz/behat-junit-formatter": "^1.3.2"
    },
    "config": {
        "platform": {
            "php": "7.3"
        },
        "sort-packages": true,
        "discard-changes": true,
        "preferred-install": {
            "acquia/blt": "source",
            "acquia/coding-standards": "source",
            "acquia/drupal-spec-tool": "source",
            "drupal/acquia_connector": "source",
            "drupal/acquia_contenthub": "source",
            "drupal/acquia_lift": "source",
            "drupal/acquia_purge": "source",
            "drupal/acsf": "source",
            "drupal/cog": "source",
            "drupal/lightning_api": "source",
            "drupal/lightning_core": "source",
            "drupal/lightning_layout": "source",
            "drupal/lightning_media": "source",
            "drupal/lightning_workflow": "source",
            "drupal/mautic": "source",
            "drupal/media_acquiadam": "source"
        }
    },
    "extra": {
        "composer-exit-on-patch-failure": true,
        "drupal-scaffold": {
            "locations": {
                "web-root": "./docroot"
            },
            "file-mapping": {
                "[web-root]/sites/default/default.services.yml": {
                    "mode": "replace",
                    "path": "docroot/core/assets/scaffold/files/default.services.yml",
                    "overwrite": false
                },
                "[web-root]/sites/default/default.settings.php": {
                    "mode": "replace",
                    "path": "docroot/core/assets/scaffold/files/default.settings.php",
                    "overwrite": false
                }
            }
        },
        "enable-patching": true,
        "installer-paths": {
            "docroot/core": [
                "type:drupal-core"
            ],
            "docroot/modules/contrib/{$name}": [
                "type:drupal-module"
            ],
            "docroot/modules/custom/{$name}": [
                "type:drupal-custom-module"
            ],
            "docroot/profiles/contrib/{$name}": [
                "type:drupal-profile"
            ],
            "docroot/profiles/custom/{$name}": [
                "type:drupal-custom-profile"
            ],
            "docroot/themes/contrib/{$name}": [
                "type:drupal-theme"
            ],
            "docroot/themes/custom/{$name}": [
                "type:drupal-custom-theme"
            ],
            "docroot/libraries/{$name}": [
                "type:drupal-library",
                "type:bower-asset",
                "type:npm-asset"
            ],
            "drush/Commands/{$name}": [
                "type:drupal-drush"
            ]
        },
        "installer-types": [
            "bower-asset",
            "npm-asset"
        ],
        "patchLevel": {
            "drupal/core": "-p2"
        },
        "patches": {},
        "orca": {
            "sut": "acquia/blt",
            "is-sut-only": true,
            "is-bare": false,
            "is-dev": true
        }
    },
    "autoload": {
        "psr-4": {
            "Example\\": "blt/src/"
        }
    },
    "autoload-dev": {
        "psr-4": {
            "Drupal\\Tests\\PHPUnit\\": "tests/phpunit/src/"
        }
    },
    "minimum-stability": "dev",
    "prefer-stable": true,
    "scripts": {
        "post-create-project-cmd": [
            "blt internal:create-project:init-repo"
        ],
        "nuke": [
            "rm -rf vendor composer.lock docroot/core docroot/modules/contrib docroot/profiles/contrib docroot/themes/contrib",
            "@composer clearcache --ansi",
            "@composer install --ansi"
        ]
    },
    "repositories": {
        "acquia/blt": {
            "type": "path",
            "url": "/home/dane/packages/blt"
        },
        "drupal": {
            "type": "composer",
            "url": "https://packages.drupal.org/8"
        },
        "asset-packagist": {
            "type": "composer",
            "url": "https://asset-packagist.org"
        }
    }
}
Berdir commented 4 years ago

Good catch, I've updated my PR for some other Drupal9 fixes to include a fix to this : https://github.com/jhedstrom/DrupalDriver/pull/224.

Didn't run into this yet there as I've been testing with "drupal/core": "9.0.0-beta2 as 8.8.4",