drupal-core-strict icon indicating copy to clipboard operation
drupal-core-strict copied to clipboard

Example: adding to an existing project

Open efpapado opened this issue 8 years ago • 0 comments

Hi, I have just added webflo/drupal-core-strict to a project and I would like to share the steps, in case they are helpful to anyone.

PHP version: 7.1.16

Previous composer.json:

"drupal/core": "~8.0",

and the installed version was 8.4.5

I changed composer.json to:

        "drupal/core": "~8.5.1",
        "webflo/drupal-core-strict": "~8.5.1",

My first attempt in the terminal was:

composer update drupal/core webflo/drupal-core-strict --with-dependencies

But I got the following error:

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

  Problem 1
    - Installation request for symfony/config (locked at v3.2.14) -> satisfiable by symfony/config[v3.2.14].
    - webflo/drupal-core-strict 8.5.1 requires symfony/dependency-injection v3.4.4 -> satisfiable by symfony/dependency-injection[v3.4.4].
    - webflo/drupal-core-strict 8.5.x-dev requires symfony/dependency-injection v3.4.4 -> satisfiable by symfony/dependency-injection[v3.4.4].
    - Conclusion: don't install symfony/dependency-injection v3.4.4
    - Installation request for webflo/drupal-core-strict ~8.5.1 -> satisfiable by webflo/drupal-core-strict[8.5.1, 8.5.x-dev].

So in a second attempt, I added symfony/config to the command:

composer update drupal/core webflo/drupal-core-strict symfony/config --with-dependencies

..and this worked like a charm, updating my Drupal core to 8.5.1

efpapado avatar Apr 04 '18 09:04 efpapado