目次

Drupal9 Minor-update3

9.3.6 → 9.3.8

少し異なる状況になった。

説明通りにやる

$ composer outdated "drupal/*"
Info from https://repo.packagist.org: #StandWithUkraine
Color legend:
- patch or minor release available - update recommended
- major release available - update possible
drupal/core                   9.3.6  9.3.8  Drupal is an open source content management platform powering millions of websites and applications.
drupal/core-composer-scaffold 9.3.6  9.3.8  A flexible Composer project scaffold builder.
drupal/core-dev               9.3.6  9.3.8  require-dev dependencies from drupal/drupal; use in addition to drupal/core-recommended to run te...
drupal/core-project-message   9.3.6  9.3.8  Adds a message after Composer installation.
drupal/core-recommended       9.3.6  9.3.8  Locked core dependencies; require this project INSTEAD OF drupal/core.
drupal/core-vendor-hardening  8.9.20 9.3.8  Hardens the vendor directory for when it's in the docroot.
drupal/upgrade_status         3.13.0 3.14.0 Review Drupal major upgrade readiness of the environment and components of the site.

9.3.6→9.3.8 が存在する。。前回と異なり、composer update をやってしまった。

$ composer update
Loading composer repositories with package information
Updating dependencies
Lock file operations: 0 installs, 21 updates, 0 removals
  - Upgrading composer/composer (2.2.6 => 2.2.9)
  - Upgrading composer/xdebug-handler (2.0.4 => 3.0.3)
  - Upgrading doctrine/instantiator (1.4.0 => 1.4.1)
(中略)
    Cleaning: phpunit/phpunit
    Cleaning: composer/composer
Package container-interop/container-interop is abandoned, you should avoid using it. Use psr/container instead.
Package doctrine/reflection is abandoned, you should avoid using it. Use roave/better-reflection instead.
Generating autoload files
Hardening vendor directory with .htaccess and web.config files.
86 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
Cleaning vendor directory.
Scaffolding files for drupal/core:
 
 
  [RuntimeException]                                                                 
  Could not delete /home/husq/www/www_cycle_eek/sites/default/default.services.yml:  
 
 
update [--with WITH] [--prefer-source] [--prefer-dist] [--prefer-install PREFER-INSTALL] [--dry-run] [--dev] [--no-dev] [--lock] [--no-install] [--no-autoloader] [--no-suggest] [--no-progress] [-w|--with-dependencies] [-W|--with-all-dependencies] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--apcu-autoloader-prefix APCU-AUTOLOADER-PREFIX] [--ignore-platform-req IGNORE-PLATFORM-REQ] [--ignore-platform-reqs] [--prefer-stable] [--prefer-lowest] [-i|--interactive] [--root-reqs] [--] [<packages>]...

ん?、エラー?

以前と同じ方法でやってみる

 composer update drupal/core "drupal/core-*" --with-all-dependencies
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.
 
  Problem 1
    - composer/installers[v1.7.0, ..., v1.8.0] require composer-plugin-api ^1.0 -> found composer-plugin-api[2.2.0] but it does not match the constraint.
    - Root composer.json requires composer/installers ^1.2 -> satisfiable by composer/installers[v1.7.0, v1.8.0].

問題を調べる

問題あるらしい。相変わらず、何をすべきかはっきりわからないが、下記をやってみる。

$ composer require "composer/installers:^1.9"
Info from https://repo.packagist.org: #StandWithUkraine
./composer.json has been updated
Running composer update composer/installers
Loading composer repositories with package information
Updating dependencies
Nothing to modify in lock file
Writing lock file
Installing dependencies from lock file (including require-dev)
Nothing to install, update or remove
Package container-interop/container-interop is abandoned, you should avoid using it. Use psr/container instead.
Package doctrine/reflection is abandoned, you should avoid using it. Use roave/better-reflection instead.
Generating autoload files
Hardening vendor directory with .htaccess and web.config files.
86 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
Scaffolding files for drupal/core:
 
 
  [RuntimeException]                                                                 
  Could not delete /home/husq/www/www_cycle_eek/sites/default/default.services.yml:  
 
 
require [--dev] [--dry-run] [--prefer-source] [--prefer-dist] [--prefer-install PREFER-INSTALL] [--fixed] [--no-suggest] [--no-progress] [--no-update] [--no-install] [--update-no-dev] [-w|--update-with-dependencies] [-W|--update-with-all-dependencies] [--with-dependencies] [--with-all-dependencies] [--ignore-platform-req IGNORE-PLATFORM-REQ] [--ignore-platform-reqs] [--prefer-stable] [--prefer-lowest] [--sort-packages] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--apcu-autoloader-prefix APCU-AUTOLOADER-PREFIX] [--] [<packages>]...

特に何も起こらず、さっきと同じエラーが出ている。ぐぐってみたら、下記が見つかった。

chmod u+w sites/default

再度やってみる。

$ composer update drupal/core "drupal/core-*" --with-all-dependencies
Loading composer repositories with package information
Updating dependencies
Nothing to modify in lock file
Installing dependencies from lock file (including require-dev)
Nothing to install, update or remove
Package container-interop/container-interop is abandoned, you should avoid using it. Use psr/container instead.
Package doctrine/reflection is abandoned, you should avoid using it. Use roave/better-reflection instead.
Generating autoload files
Hardening vendor directory with .htaccess and web.config files.
86 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
Scaffolding files for drupal/core:
  - Copy [web-root]/sites/default/default.services.yml from assets/scaffold/files/default.services.yml
Cleaning vendor directory.

うまくいったようだ。。よかった。

わからないけど、とりあえず、update.phpを実行