Core version doesn’t update
If you run the composer update
command but core isn’t updating, edit your composer.json
file to include the specific version of core you want, e.g. ^8.5
. Then, run the composer update
command again.
Composer command outputs errors
Composer may not be able to resolve all of the dependencies of core and will output an error like this:
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Conclusion: don't install drupal/core 8.5.0
- Conclusion: don't install drupal/core 8.5.0-rc1
- Conclusion: don't install drupal/core 8.5.0-beta1
- Conclusion: don't install drupal/core 8.5.0-alpha1
- Conclusion: don't install drupal/core 8.6.x-dev
- Conclusion: remove symfony/config v3.2.9
- Installation request for drupal/core ^8.5 -> satisfiable by drupal/core[8.5.0, 8.5.0-alpha1, 8.5.0-beta1, 8.5.0-rc1, 8.5.x-dev, 8.6.x-dev].
- Conclusion: don't install symfony/config v3.2.9
- drupal/core 8.5.x-dev requires symfony/dependency-injection ~3.4.0 -> satisfiable by symfony/dependency-injection[3.4.x-dev, v3.4.0, v3.4.0-BETA1, v3.4.0-BETA2, v3.4.0-BETA3, v3.4.0-BETA4, v3.4.0-RC1, v3.4.0-RC2, v3.4.1, v3.4.2, v3.4.3, v3.4.4, v3.4.5, v3.4.6].
- symfony/dependency-injection 3.4.x-dev conflicts with symfony/config[v3.2.9].
- symfony/dependency-injection v3.4.0 conflicts with symfony/config[v3.2.9].
- symfony/dependency-injection v3.4.0-BETA1 conflicts with symfony/config[v3.2.9].
- symfony/dependency-injection v3.4.0-BETA2 conflicts with symfony/config[v3.2.9].
- symfony/dependency-injection v3.4.0-BETA3 conflicts with symfony/config[v3.2.9].
- symfony/dependency-injection v3.4.0-BETA4 conflicts with symfony/config[v3.2.9].
- symfony/dependency-injection v3.4.0-RC1 conflicts with symfony/config[v3.2.9].
- symfony/dependency-injection v3.4.0-RC2 conflicts with symfony/config[v3.2.9].
- symfony/dependency-injection v3.4.1 conflicts with symfony/config[v3.2.9].
- symfony/dependency-injection v3.4.2 conflicts with symfony/config[v3.2.9].
- symfony/dependency-injection v3.4.3 conflicts with symfony/config[v3.2.9].
- symfony/dependency-injection v3.4.4 conflicts with symfony/config[v3.2.9].
- symfony/dependency-injection v3.4.5 conflicts with symfony/config[v3.2.9].
- symfony/dependency-injection v3.4.6 conflicts with symfony/config[v3.2.9].
- Installation request for symfony/config (locked at v3.2.9) -> satisfiable by symfony/config[v3.2.9].
This happens when one of Drupal’s dependencies is updated and the new version requires an updated version of another package. To resolve this, include the dependency package causing the issue in the composer update
command. The --with-dependencies
flag this will ensure that the dependency’s dependencies are also updated. To fix the error above, I ran:
composer update drupal/core symfony/config --with-dependencies -v