12/14/2023 0 Comments Drupal composer update![]() To check why Drupal core doesn’t upgrade, we will execute the following command: composer prohibits drupal/core:8.6.2Ĭomposer will check what package is blocking Drupal core 8.6.2 upgrade. It's on that moment when “ composer prohibits” can help us. That can bring us to many headaches, because the update command will upgrade every dependency of the project. In this moment, many people fall back to force the upgrade with “composer update”. When we execute this, Composer will upgrade dependencies and needed packages, but when Composer finished, it may happen that drupal/core is still in 8.5.x version. What we would do is to execute the following: composer update drupal/core -with-dependencies Let’s assume that we have a Drupal project with 8.5 Core version, and we'd like to upgrade to Drupal 8.6. Here we will use Drupal as an example to explain how this command work, but the solution works on every project with composer as dependency manager. In this case we will talk about components upgrades, focused on how “ composer prohibits” command can help us when the upgrade process doesn’t work fine. ![]() ![]() ![]() This implies that our processes will need to be adapted to follow this new dependency management organization, like modules installation or Core upgrades. With Drupal 8, arrives Composer as the standard for dependencies management on our projects. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |