pug-php / pug

Pug template engine for PHP
https://www.phug-lang.com
MIT License
387 stars 42 forks source link

Incompatibility with composer 2.0 #243

Closed a666 closed 3 years ago

a666 commented 3 years ago

Hello,

Using the following composer version:

$ composer -V
Composer version 2.0.2 2020-10-25 23:03:5

Trying to install pug-php/pug:

$ composer require pug-php/pug
Using version ^3.4 for pug-php/pug
./composer.json has been updated
Running composer update pug-php/pug
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - pug-php/pug[3.4.0, ..., 3.4.1] require nodejs-php-fallback/nodejs-php-fallback ^1.3.1 -> satisfiable by nodejs-php-fallback/nodejs-php-fallback[1.5.1].
    - nodejs-php-fallback/nodejs-php-fallback 1.5.1 requires composer-plugin-api ^1.0 -> found composer-plugin-api[2.0.0] but it does not match the constraint.
    - Root composer.json requires pug-php/pug ^3.4 -> satisfiable by pug-php/pug[3.4.0, 3.4.1].

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.

Fails due to plugin incompatibility.

Using composer's --no-plugins changes nothing (is this a composer issue?):

$ composer require pug-php/pug --no-plugins
Using version ^3.4 for pug-php/pug
./composer.json has been updated

...

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

Thanks!

I cross posted this issue in https://github.com/kylekatarnls/nodejs-php-fallback/issues/22 , if you think it's just redundant I can close this one.

kylekatarnls commented 3 years ago

Hello, it's now fixed in the last version of nodejs-php-fallback/nodejs-php-fallback.

Thanks.