A Drush plugin to compare the versions present in the composer.lock with the ones requested in composer.json.
Frederic G. MARAND 85ae4533ac Drupal 9 / Drush 10. | 3 years ago | |
---|---|---|
coverage | 3 years ago | |
.gitignore | 3 years ago | |
ComposerCheckCommands.php | 3 years ago | |
LICENSE.txt | 7 years ago | |
README.md | 3 years ago | |
composer.json | 3 years ago |
This Drush plugin provides a composer:check
(alias cch
) command, which
compares the packages versions in composer.lock
with those requested in the
composer.json
file of a Drupal 9 project.
composer.lock
: Optional. The path to the lock file. Defaults to the one
above the project root, which is the default in modern Composer layouts for
Drupal 9.--all
: List all locked packages, even those not requested--yaml
: Produce YAML output instead of a tablecch
This package is available on Packagist as fgm/composer-check
.
Default usage in a drupal/core-recommended
or drupal-composer/drupal-project
project :
drush cch
Listing all packages in a legacy drupal/drupal
project, in YAML format :
drush cch --all --yaml $PWD/composer.lock
Like any Drupal code, this plugin is licensed under the General Public License, version 2.0 or later.
For jurisdictions needing it, it is also licensed under the CeCILL 2.1 or later.