

(those 2 are the most commonly changed).Ģ- Delete the composer.lock file (in the top level folder of your site). Jump to UPDATE 3 below for what I believe is "the answer" for minor release updates.ġ- Backup any files that come with Drupal which you have modified, such as. The following is OK for patch releases 8.4.x > 8.4.y, but not OK for minor releases 8.4.x > 8.5.x. These files should change only rarely, but drupal-composer/drupal-project has a script to update these files. That means that you should check them in to your git repository Composer will not update them, you must update them yourself when they change. htaccess and index.html become owned by your project. If you are using drupal-composer/drupal-project to manage your site, then all of the root-level files such as README.txt.

To avoid getting development versions, set your minimum stability to 'beta' in your composer.json file using Composer stability flags. Of course, you should run drush updatedb whenever composer update replaces Drupal core or any module. You are better off not committing composer-managed directories to your repository, although you can if you wish. Walk through the high-level steps required to upgrade from Drupal 8 to Drupal 9. In this tutorial we’ll: Explain the differences between Drupal 8 and Drupal 9 that affect the upgrade path. It should not matter to you whether or not files in the core directory are updated or not, as this directory is managed by Composer. 8.9.x/9.4.x There’s no one-size-fits-all path to upgrade from Drupal 8 to Drupal 9, but there is a set of common tasks that everyone will need to complete. You should not use drush pm-update at all.
#UPDATE DRUPAL WITH COMPOSER INSTALL#
As long as you retain your composer.lock file, composer install should not change the version of any of your dependencies. If you are doing all of these things, then you should use composer update to update Drupal core and all of your contrib modules. If not, take a look at that project, and compare it with yours.Īlso, you said that you want to use composer to manage Drupal 8 dependencies, so I presume that you have selected your contrib modules via composer require drupal/devel rather than drush dl devel. I presume that you are using drupal-composer/drupal-project as the basis for your project.
