

(those 2 are the most commonly changed).Ģ- Delete the composer.lock file (in the top level folder of your site).
UPDATING DRUPAL CORE UPDATE
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. Closed (outdated) 3362110-13: Since 3361983 was committed to Drupal core, psr/http-message needed to be explicitly required for build tests. Build tests fail without explicitly requiring psr/http-message. Of course, you should run drush updatedb whenever composer update replaces Drupal core or any module. Build tests fail without explicit requiring psr/http-message. You are better off not committing composer-managed directories to your repository, although you can if you wish. 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. You should not use drush pm-update at all.
UPDATING DRUPAL CORE 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. In this this article we will also upgrade drupal. I presume that you are using drupal-composer/drupal-project as the basis for your project. So today, we will upgraded major version of drupal 8 which is 8.9.19 from drupal 8.7 or any drupal 8.X version.
