- π©πͺGermany chr.fritsch π©πͺπͺπΊπ
Improved the composer handling a bit if your package doesn't is in the drupal/ namespace
- π³π±Netherlands ndf Amsterdam
Thanks guys,
on commit I changed the logic a little bit so that submodules of packages are reported correctly.Tested:
-composer require drupal/paragraphs
-> all submodules in report
- composer require non-drupal package -> not in report
- composer require drupal package, but overridden (local development unused module) -> not in reportThe following composer:
"require": { "php": "~8.1.0", "composer/installers": "^1.9", "cweagans/composer-patches": "^1.7", "danielstjules/stringy": "^3.1", "drupal/admin_toolbar": "^3.3", "drupal/asset_injector": "dev-2.x", "drupal/core": "^9.5", "drupal/core-composer-scaffold": "^9.5", "drupal/paragraphs": "1.x-dev", "drupal/unused_modules": "*", "drush/drush": "^11.0", "vlucas/phpdotenv": "^5.1", "webflo/drupal-finder": "^1.2" }, "repositories": { "unused_modules": { "type": "path", "url": "/Users/ndf/WebWork/DrupalModules/unused_modules" }, "drupal": { "type": "composer", "url": "https://packages.drupal.org/8" } },
The result:
08:55 $ drush um modules all [warning] Message: Could not parse Composer information for module 'unused_modules' +----------------------------+-----------------------------------+----------------+-----------------------------+--------------------------------------------+ | Project | Module | Module enabled | Project has Enabled Modules | Project Path | +----------------------------+-----------------------------------+----------------+-----------------------------+--------------------------------------------+ | _NO_PROJECT_INFORMATION_ | unused_modules | Yes | Yes | | | admin_toolbar | admin_toolbar | Yes | Yes | modules/contrib/admin_toolbar | | admin_toolbar | admin_toolbar_links_access_filter | No | Yes | modules/contrib/admin_toolbar | | admin_toolbar | admin_toolbar_search | No | Yes | modules/contrib/admin_toolbar | | admin_toolbar | admin_toolbar_tools | Yes | Yes | modules/contrib/admin_toolbar | | asset_injector | asset_injector | No | No | modules/contrib/asset_injector | | entity_reference_revisions | entity_reference_revisions | No | No | modules/contrib/entity_reference_revisions | | paragraphs | paragraphs_demo | No | No | modules/contrib/paragraphs | | paragraphs | paragraphs_library | No | No | modules/contrib/paragraphs | | paragraphs | paragraphs_type_permissions | No | No | modules/contrib/paragraphs | | paragraphs | paragraphs | No | No | modules/contrib/paragraphs | +----------------------------+-----------------------------------+----------------+-----------------------------+--------------------------------------------+
- Status changed to Fixed
almost 2 years ago 7:59am 1 February 2023 Automatically closed - issue fixed for 2 weeks with no activity.