Matt Glaman
Matt Glaman
There is not. There could be a new flag. That seems easier than adding wildcard support. ``` extra.drupal-lenient.allow-all: true ``` Something like this. If set, all `drupal/` packages modified
I'll try to find some time to add it.
Huh, so this is the magic. ``` /** * Implements hook_system_info_alter(). */ function backward_compatibility_system_info_alter(&$info, Extension $file, $type) { $info['core_incompatible'] = FALSE; } ``` Ah but it's invoked within the `ExtensionList`...
Drupal now uses OOP hooks. So I think this can be done now for 11.x!
Look at your errors. Has nothing to do with this package. Your root package requires geoip 3 and the other module requires 2. This package is only for Drupal core.
Oh, sorry. I thought this was a bug report. I would be afraid to extend this package that way. Especially since Composer does have a workaround as commented.
I won't close this, but I won't set aside time to work on it. I'll welcome the idea if someone puts up a pull request. However, it's bending the purpose...
Can you provide some more details? Like ensuring this runs and alters the package data when running `why-not`?
Ah! Okay. Thanks, now I understand. That would be helpful!
Saving some notes for when I explore this: The `why-not` command is alias of `prohibits` from `ProhibitsCommand` https://github.com/composer/composer/blob/main/src/Composer/Command/ProhibitsCommand.php Results come from: ```php $repos = []; $repos[] = new RootPackageRepository(clone $composer->getPackage());...