"core_version_requirement key must be present" on core modules on Windows

Created on 27 August 2023, over 1 year ago
Updated 4 October 2023, about 1 year ago

Problem/Motivation

We have discovered, that it is no longer possible to install Drupal 10 on Windows machine when using 10.2.x-dev (11.x branch). It seems like something has changed and the paths to core modules are not resolved correctly, which is causing the InfoParser to complain that core modules does not have core_version_requirement set (which should not be the case). See:

Drupal\Core\Extension\InfoParserException: The 'core_version_requirement' key must be present in D:\htdocs\d10test\core/modules/mysql/mysql.info.yml in Drupal\Core\Extension\InfoParserDynamic->parse() (line 67 of core\lib\Drupal\Core\Extension\InfoParserDynamic.php).

Drupal\Core\Extension\InfoParserDynamic->parse('D:\htdocs\d10test\core/modules/mysql/mysql.info.yml') (Line: 22)
Drupal\Core\Extension\InfoParser->parse('D:\htdocs\d10test\core/modules/mysql/mysql.info.yml') (Line: 210)
Drupal\Core\Extension\DatabaseDriver->getModuleInfo() (Line: 160)
Drupal\Core\Extension\DatabaseDriver->getAutoloadInfo() (Line: 95)
Drupal\Core\Extension\DatabaseDriver->load() (Line: 110)
Drupal\Core\Extension\DatabaseDriver->getInstallTasks() (Line: 110)
Drupal\Core\Extension\DatabaseDriverList->getInstallableList() (Line: 530)
system_requirements('install') (Line: 907)
drupal_check_profile('minimal') (Line: 2084)
install_check_requirements(Array) (Line: 1098)
install_verify_requirements(Array) (Line: 707)
install_run_task(Array, Array) (Line: 578)
install_run_tasks(Array, NULL) (Line: 121)
install_drupal(Object) (Line: 48)

This is only problem on 11.x branch. The last 10.1.x can be installed without problems. I do not think this is related to 🌱 [policy, no patch] Drop support for Windows in production Needs review .

Steps to reproduce

Try to install 11.x (10.2.x-dev) on windows (xampp or another environment).

Proposed resolution

Find the problem and fix the issue.

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

πŸ› Bug report
Status

Fixed

Version

11.0 πŸ”₯

Component
InstallΒ  β†’

Last updated 3 days ago

No maintainer
Created by

πŸ‡ΈπŸ‡°Slovakia poker10

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024