When Lightning Core is installed at docroot/modules/contrib/lightning_core and $this=>locateRoot('docroot/modules/contrib/lightning_core') is executed, Drupal Finder will incorrectly assume that docroot/modules/contrib/lightning_core is actually the root.
This is due to Lightning Core's composer.json, which contains entries for installer-paths.
It seems like it would be useful to add a couple of extra checks to Drupal Finder ensure that the directory structure looks like Drupal core. For instance, checking for core,index.php,modules, etc. Checking values in composer.json is not sufficient in all cases.
When Lightning Core is installed at
docroot/modules/contrib/lightning_coreand$this=>locateRoot('docroot/modules/contrib/lightning_core')is executed, Drupal Finder will incorrectly assume thatdocroot/modules/contrib/lightning_coreis actually the root.This is due to Lightning Core's composer.json, which contains entries for
installer-paths.It seems like it would be useful to add a couple of extra checks to Drupal Finder ensure that the directory structure looks like Drupal core. For instance, checking for
core,index.php,modules, etc. Checking values in composer.json is not sufficient in all cases.