8/10/2023 0 Comments Drupal core version![]() In software terms End of Life is when a piece of software reaches the point when it will no longer receive bug fixes or security updates from the maintainers. Let's first start with the definition of “End of Life,” or EOL. This means you are likely not only re-thinking your original upgrade plans but also asking what’s next for your Drupal website or future project. Thank you Karine Chor & Hendrik Grahl for providing inputs to this post.Now that the End of Life for Drupal 7 has pushed out to November 2022 it no longer shares an end of life date with Drupal 8 (Drupal 8 is set for an end of life in November 2021). Most contributed modules are Drupal 9 ready and only a few exotic modules required me to work on a reroll of a Drupal 9 compatibility patch.Īs you can see from the topics being mentioned, the effort to update the infrastructure certainly accumulates with upgrading from Composer 1 to 2, PHPUnit and making sure that other toolchain components are up to date. Thanks to semantic versioning, updating from Drupal 8 to Drupal 9 involves very little steps on the application layer. Now you will be able to use lando start and respective commands within both project folders and access both site instances independently. In case you need have specified a portforward for the database, you should define a custom port for your second project instance database: Use the following configuration to adapt url mappings, so that they don’t overlap with the original project. within your second instance, so that you can run lando separately for both folders. I decided to run two instances in parallel, so that I don’t have to do full lando rebuilds.Ĭheck out the same repository twice in two separate folders. Working in multiple Lando instances of the same siteīecause the Drupal 9 upgrade branch has a lot of dependencies that are different from Drupal 8, switching back and forth between branches might be cumbersome. Rector wasn’t able to do all of them, so plan for some additional work here. I used Rector to apply some automatic code style fixes for our custom modules. We are using drupal-check to automatically detect issues in the code base and this threw significantly more errors after the upgrade as code style requirements were increased. Update your custom code for Drupal 9 using Rectorĭrupal 9 compatibility issues should be outlined by the Upgrade Status module mentioned previously. Add the following to your composer.json: "require": 6. In such a case, you can include a forked repository using the following approach. The according issue was just merged recently, but during the upgrade composer 2 support was only available via a fork of the original repository. wikimedia/composer-merge-plugin v1.4.1 requires composer-plugin-api ^1.0 -> found composer-plugin-api but it does not match your constraint. Root composer.json requires wikimedia/composer-merge-plugin 1.4.1 -> satisfiable by wikimedia/composer-merge-plugin. ![]() Your requirements could not be resolved to an installable set of packages. When you run composer install, you might get an error like the following: Updating to composer 2 may result in errors depending on the packages that you are using. In our lando.yml, we can explicitly specify the composer version as follows: services: ![]() In our case, we are using Lando, so let’s refer to the documentation on how to choose a composer version in Lando. If you have the composer version specified in your docker container, you might need to set it up there. First we update composer itself: composer selfupdate -2 One fundamental step was to update to Composer 2. You can access your upgrade report at v/admin/reports/upgrade-status. Index individual projects: drush us-a project_a project_b ![]() Run a full index from the command line: drush us-a -all It takes a while to scan all modules, but the UI is really helpful in identifying what is left for you to do. To get started, I used Upgrade Status to analyse and keep track of the Drupal 9 readiness of the site. Keep track of Drupal 9 compatibility using Upgrade Status Most contributed modules are Drupal 9 ready and only a few exotic modules required me to work on a reroll of a Drupal 9 compatibility patch. As you might expect, updating from Drupal 8 to Drupal 9 involves very little steps on the application layer. In this blog post I would like to share some of the learnings I had while completing the upgrade. Recently, I had the opportunity to upgrade one of our projects from Drupal 8 to Drupal 9.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |