phpstan / extension-installer

Composer plugin for automatic installation of PHPStan extensions.
MIT License
391 stars 27 forks source link

Question - 1.4.0 has dependency on composer-plugin-api v2.6.0+ #88

Closed vreemt closed 1 month ago

vreemt commented 1 month ago

Hi, I'm updating a drupal site and came across the following dependency issue

phpstan/extension-installer 1.4.0 requires composer-plugin-api ^2.6.0 -> found composer-plugin-api[2.3.0] but it does not match the constraint.
    - drupal/core-dev 10.2.7 requires phpstan/extension-installer ^1.1 ->

I have limited access to composer/composer plugins on the target system (Pantheon, php 8.1), which is running Composer version 2.5.8 2023-06-09 17:13:21, my local system with an older composer version (2.5.5 2023-03-21 11:50:05) doesn't have this issue

I tried adding a requirement for composer-plugin-api:^2.6, but it seems to insist on 2.3:

Root composer.json requires composer-plugin-api ^2.6, found composer-plugin-api[2.3.0] but it does not match the constraint.

I searched the documentation and site, but didn't really find specifics around the composer plugin api.

For now, I'm using composer require "phpstan/extension-installer:1.0 - 1.3" --dev.

Is there any documentation around the version of composer-plugin-api for the extension installer?

Thanks, Sandra.

ondrejmirtes commented 1 month ago

Hey, I just released phpstan/extension-installer 1.4.1 which rolls back the bump in composer-plugin-api, so it should be usable as 1.3.1 was.

github-actions[bot] commented 4 days ago

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.