Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not compatible with Composer 2 #194

Closed
anishsheela opened this issue Oct 29, 2020 · 1 comment
Closed

Not compatible with Composer 2 #194

anishsheela opened this issue Oct 29, 2020 · 1 comment

Comments

@anishsheela
Copy link

How is drupal-check installed?

Tried to install
drupal-check is installed globally via Composer

Environment:

  • OS: Linux
  • PHP Version: 7.4.9
  • Drupal core: 8.x-dev

Describe the bug
I tried to install drupal-check globally. It is not working with composer 2.

Console output

anish@anish-pc:~$ composer global require mglaman/drupal-check
Changed current directory to /home/anish/.config/composer
The "hirak/prestissimo" plugin was skipped because it requires a Plugin API version ("^1.0.0") that does not match your Composer installation ("2.0.0"). You may need to run composer update with the "--no-plugins" option.
The "zaporylie/composer-drupal-optimizations" plugin was skipped because it requires a Plugin API version ("^1.1") that does not match your Composer installation ("2.0.0"). You may need to run composer update with the "--no-plugins" option.
Using version ^1.1 for mglaman/drupal-check
./composer.json has been updated
The "hirak/prestissimo" plugin was skipped because it requires a Plugin API version ("^1.0.0") that does not match your Composer installation ("2.0.0"). You may need to run composer update with the "--no-plugins" option.
The "zaporylie/composer-drupal-optimizations" plugin was skipped because it requires a Plugin API version ("^1.1") that does not match your Composer installation ("2.0.0"). You may need to run composer update with the "--no-plugins" option.
Running composer update mglaman/drupal-check
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - hirak/prestissimo is locked to version 0.3.10 and an update of this package was not requested.
    - hirak/prestissimo 0.3.10 requires composer-plugin-api ^1.0.0 -> found composer-plugin-api[2.0.0] but it does not match the constraint.
  Problem 2
    - zaporylie/composer-drupal-optimizations is locked to version 1.1.1 and an update of this package was not requested.
    - zaporylie/composer-drupal-optimizations 1.1.1 requires composer-plugin-api ^1.1 -> found composer-plugin-api[2.0.0] but it does not match the constraint.

You are using Composer 2, which some of your plugins seem to be incompatible with. Make sure you update your plugins or report a plugin-issue to ask them to support Composer 2.

Installation failed, reverting ./composer.json and ./composer.lock to their original content.

@joelpittet
Copy link
Collaborator

joelpittet commented Nov 3, 2020

This project isn't requiring those projects, and you can remove them. You can use this as a reference: https://www.drupal.org/docs/develop/using-composer/preparing-your-site-for-composer-2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants