Using Drupal console to install a contrib module that supplies the new key only, without the legacy core key, fails.
`$ drupal module:install imagemagick --verbose --no-interaction
✘ This version is not compatible with Drupal 8.x and should be replaced.
✘ File metadata manager incompatible with this version of Drupal core.
In InstallCommand.php line 315:
[Exception]
Some module install requirements are not met.
Exception trace:
() at /home/travis/drupal8/vendor/drupal/console/src/Command/Module/InstallCommand.php:315
Drupal\Console\Command\Module\InstallCommand->moduleRequirement() at /home/travis/drupal8/vendor/drupal/console/src/Command/Module/InstallCommand.php:152
Drupal\Console\Command\Module\InstallCommand->execute() at /home/travis/drupal8/vendor/symfony/console/Command/Command.php:255
Symfony\Component\Console\Command\Command->run() at /home/travis/drupal8/vendor/symfony/console/Application.php:978
Symfony\Component\Console\Application->doRunCommand() at /home/travis/drupal8/vendor/symfony/console/Application.php:255
Symfony\Component\Console\Application->doRun() at /home/travis/drupal8/vendor/drupal/console-core/src/Application.php:188
Drupal\Console\Core\Application->doRun() at /home/travis/drupal8/vendor/drupal/console/src/Application.php:64
Drupal\Console\Application->doRun() at /home/travis/drupal8/vendor/symfony/console/Application.php:148
Symfony\Component\Console\Application->run() at /home/travis/drupal8/vendor/drupal/console/bin/drupal.php:89
require() at /home/travis/drupal8/vendor/drupal/console/bin/drupal:4
module:install [--latest] [--composer] [-h|--help] [-q|--quiet] [-v|vv|vvv|--verbose] [-V|--version] [--ansi] [--no-ansi] [-n|--no-interaction] [-e|--env [ENV]] [--root [ROOT]] [--debug] [--learning] [-c|--generate-chain] [-i|--generate-inline] [-d|--generate-doc] [-t|--target [TARGET]] [-l|--uri URI] [-y|--yes] [--] [].`
The commit in Drupal 8.8.x of Core version key in module's .info.yml doesn't respect core semantic versioning introduced a new
core_version_requirement
key in the module.info.yml files.Using Drupal console to install a contrib module that supplies the new key only, without the legacy
core
key, fails.`$ drupal module:install imagemagick --verbose --no-interaction ✘ This version is not compatible with Drupal 8.x and should be replaced. ✘ File metadata manager incompatible with this version of Drupal core. In InstallCommand.php line 315:
[Exception]
Some module install requirements are not met.
Exception trace: () at /home/travis/drupal8/vendor/drupal/console/src/Command/Module/InstallCommand.php:315 Drupal\Console\Command\Module\InstallCommand->moduleRequirement() at /home/travis/drupal8/vendor/drupal/console/src/Command/Module/InstallCommand.php:152 Drupal\Console\Command\Module\InstallCommand->execute() at /home/travis/drupal8/vendor/symfony/console/Command/Command.php:255 Symfony\Component\Console\Command\Command->run() at /home/travis/drupal8/vendor/symfony/console/Application.php:978 Symfony\Component\Console\Application->doRunCommand() at /home/travis/drupal8/vendor/symfony/console/Application.php:255 Symfony\Component\Console\Application->doRun() at /home/travis/drupal8/vendor/drupal/console-core/src/Application.php:188 Drupal\Console\Core\Application->doRun() at /home/travis/drupal8/vendor/drupal/console/src/Application.php:64 Drupal\Console\Application->doRun() at /home/travis/drupal8/vendor/symfony/console/Application.php:148 Symfony\Component\Console\Application->run() at /home/travis/drupal8/vendor/drupal/console/bin/drupal.php:89 require() at /home/travis/drupal8/vendor/drupal/console/bin/drupal:4 module:install [--latest] [--composer] [-h|--help] [-q|--quiet] [-v|vv|vvv|--verbose] [-V|--version] [--ansi] [--no-ansi] [-n|--no-interaction] [-e|--env [ENV]] [--root [ROOT]] [--debug] [--learning] [-c|--generate-chain] [-i|--generate-inline] [-d|--generate-doc] [-t|--target [TARGET]] [-l|--uri URI] [-y|--yes] [--] [].`