目次

Drupal9 Minor-update2

前回と同じで、Problemが表示されたができている。

説明通りにやる

$ composer outdated "drupal/*"
Color legend:
- patch or minor release available - update recommended
- major release available - update possible
drupal/coder                  8.3.13 8.3.14 Coder is a library to review Drupal code.
drupal/core                   9.3.3  9.3.6  Drupal is an open source content management platform powering millions of websites and applications.
drupal/core-composer-scaffold 9.3.3  9.3.6  A flexible Composer project scaffold builder.
drupal/core-dev               9.3.3  9.3.6  require-dev dependencies from drupal/drupal; use in addition to drupal/core-recommended to run te...
drupal/core-project-message   9.3.3  9.3.6  Adds a message after Composer installation.
drupal/core-recommended       9.3.3  9.3.6  Locked core dependencies; require this project INSTEAD OF drupal/core.
drupal/core-vendor-hardening  8.9.20 9.3.6  Hardens the vendor directory for when it's in the docroot.

9.3.3→9.3.6 が存在する。。説明通りにUpdateする

$ 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].

前回と同じでProblemが表示される。

問題を調べる

問題あるらしい。相変わらず、何をすべきかはっきりわからない

composer update

何をすべきかはっきりわからなまま、今回も、composer update をやってみた。

$ composer update
Loading composer repositories with package information
Updating dependencies
Lock file operations: 3 installs, 23 updates, 0 removals
  - Upgrading composer/composer (2.2.5 => 2.2.6)
  - Locking dealerdirect/phpcodesniffer-composer-installer (v0.7.2)
  - Upgrading drupal/coder (8.3.13 => 8.3.14)
  - Upgrading drupal/core (9.3.3 => 9.3.6)
  - Upgrading drupal/core-composer-scaffold (9.3.3 => 9.3.6)
  - Upgrading drupal/core-dev (9.3.3 => 9.3.6)
  - Upgrading drupal/core-project-message (9.3.3 => 9.3.6)
  - Upgrading drupal/core-recommended (9.3.3 => 9.3.6)
  - Upgrading mglaman/phpstan-drupal (1.1.9 => 1.1.11)
  - Upgrading phar-io/version (3.1.0 => 3.2.1)
  - Locking phpstan/phpdoc-parser (1.2.0)
  - Upgrading phpstan/phpstan (1.4.2 => 1.4.6)
  - Upgrading phpunit/php-code-coverage (9.2.10 => 9.2.11)
  - Upgrading phpunit/phpunit (9.5.12 => 9.5.14)
  - Upgrading react/promise (v2.8.0 => v2.9.0)
  - Upgrading sebastian/global-state (5.0.3 => 5.0.5)
  - Upgrading sirbrillig/phpcs-variable-analysis (v2.11.2 => v2.11.3)
  - Locking slevomat/coding-standard (7.0.18)
  - Upgrading symfony/browser-kit (v4.4.27 => v4.4.37)
  - Upgrading symfony/css-selector (v4.4.27 => v4.4.37)
  - Upgrading symfony/dom-crawler (v4.4.36 => v4.4.37)
  - Upgrading symfony/filesystem (v4.4.27 => v4.4.37)
  - Upgrading symfony/finder (v4.4.36 => v4.4.37)
  - Upgrading symfony/lock (v4.4.36 => v4.4.37)
  - Upgrading symfony/phpunit-bridge (v5.4.0 => v5.4.3)
  - Upgrading twig/twig (v2.14.7 => v2.14.11)
Writing lock file
Installing dependencies from lock file (including require-dev)
Package operations: 3 installs, 23 updates, 0 removals
  - Downloading dealerdirect/phpcodesniffer-composer-installer (v0.7.2)
  - Downloading twig/twig (v2.14.11)
  - Downloading drupal/core (9.3.6)
  - Downloading symfony/phpunit-bridge (v5.4.3)
  - Downloading symfony/lock (v4.4.37)
  - Downloading symfony/finder (v4.4.37)
  - Downloading symfony/filesystem (v4.4.37)
  - Downloading symfony/dom-crawler (v4.4.37)
  - Downloading symfony/css-selector (v4.4.37)
  - Downloading symfony/browser-kit (v4.4.37)
  - Downloading sebastian/global-state (5.0.5)
  - Downloading phpunit/php-code-coverage (9.2.11)
  - Downloading phar-io/version (3.2.1)
  - Downloading phpunit/phpunit (9.5.14)
  - Downloading phpstan/phpdoc-parser (1.2.0)
  - Downloading slevomat/coding-standard (7.0.18)
  - Downloading sirbrillig/phpcs-variable-analysis (v2.11.3)
  - Syncing drupal/coder (8.3.14) into cache
  - Downloading react/promise (v2.9.0)
  - Downloading composer/composer (2.2.6)
  - Downloading phpstan/phpstan (1.4.6)
  - Downloading mglaman/phpstan-drupal (1.1.11)
  - Upgrading drupal/core-composer-scaffold (9.3.3 => 9.3.6): Extracting archive
  - Upgrading drupal/core-project-message (9.3.3 => 9.3.6): Extracting archive
  - Installing dealerdirect/phpcodesniffer-composer-installer (v0.7.2): Extracting archive
dealerdirect/phpcodesniffer-composer-installer contains a Composer plugin which is currently not in your allow-plugins config. See https://getcomposer.org/allow-plugins
Do you trust "dealerdirect/phpcodesniffer-composer-installer" to execute code and wish to enable it now? (writes "allow-plugins" to composer.json) [y,n,d,?] y
  - Upgrading twig/twig (v2.14.7 => v2.14.11): Extracting archive
  - Upgrading drupal/core (9.3.3 => 9.3.6): Extracting archive
  - Upgrading symfony/phpunit-bridge (v5.4.0 => v5.4.3): Extracting archive
  - Upgrading symfony/lock (v4.4.36 => v4.4.37): Extracting archive
  - Upgrading symfony/finder (v4.4.36 => v4.4.37): Extracting archive
  - Upgrading symfony/filesystem (v4.4.27 => v4.4.37): Extracting archive
  - Upgrading symfony/dom-crawler (v4.4.36 => v4.4.37): Extracting archive
  - Upgrading symfony/css-selector (v4.4.27 => v4.4.37): Extracting archive
  - Upgrading symfony/browser-kit (v4.4.27 => v4.4.37): Extracting archive
  - Upgrading sebastian/global-state (5.0.3 => 5.0.5): Extracting archive
  - Upgrading phpunit/php-code-coverage (9.2.10 => 9.2.11): Extracting archive
  - Upgrading phar-io/version (3.1.0 => 3.2.1): Extracting archive
  - Upgrading phpunit/phpunit (9.5.12 => 9.5.14): Extracting archive
  - Installing phpstan/phpdoc-parser (1.2.0): Extracting archive
  - Installing slevomat/coding-standard (7.0.18): Extracting archive
  - Upgrading sirbrillig/phpcs-variable-analysis (v2.11.2 => v2.11.3): Extracting archive
  - Upgrading drupal/coder (8.3.13 => 8.3.14): Checking out adb06efa79 from cache
  - Upgrading react/promise (v2.8.0 => v2.9.0): Extracting archive
  - Upgrading composer/composer (2.2.5 => 2.2.6): Extracting archive
  - Upgrading drupal/core-dev (9.3.3 => 9.3.6)
  - Upgrading drupal/core-recommended (9.3.3 => 9.3.6)
  - Upgrading phpstan/phpstan (1.4.2 => 1.4.6): Extracting archive
  - Upgrading mglaman/phpstan-drupal (1.1.9 => 1.1.11): Extracting archive
    Cleaning: twig/twig
    Cleaning: symfony/phpunit-bridge
    Cleaning: symfony/finder
    Cleaning: symfony/filesystem
    Cleaning: symfony/dom-crawler
    Cleaning: symfony/css-selector
    Cleaning: symfony/browser-kit
    Cleaning: sebastian/global-state
    Cleaning: phpunit/php-code-coverage
    Cleaning: phar-io/version
    Cleaning: phpunit/phpunit
    Cleaning: drupal/coder
    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.
PHP CodeSniffer Config installed_paths set to ../../drupal/coder/coder_sniffer,../../sirbrillig/phpcs-variable-analysis,../../slevomat/coding-standard

途中、何かを「信頼するか」と聞かれたが、y を入れた。

Dealerdirect / phpcodesniffer-composer-installerには、現在allow-plugins構成にないComposerプラグインが含まれています。
https://getcomposer.org/allow-pluginsを参照してください
「dealerdirect / phpcodesniffer-composer-installer」を信頼してコードを実行し、今すぐ有効にしますか? (composer.jsonに「allow-plugins」を書き込みます)[y、n、d、?] y

アクセスして、サイトの状態を見たら 9.3.6 と記載が出てる。

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