mediact / dependency-guard

Static production dependency analysis.
MIT License
83 stars 5 forks source link

Composer 2.0 compatibility #40

Closed siraic closed 4 years ago

siraic commented 4 years ago

First off, thank you for creating a great package that helped us catch some issues before they made it to production.

Composer 2 has been released, and when using that version on a project that has dependency-guard installed, all composer commands fail with the following message:

  Problem 1
    - mediact/dependency-guard[1.0.0, ..., 1.1.1] require composer-plugin-api ^1.1 -> found composer-plugin-api[2.0.0] but it does not match the constraint.
    - Root composer.json requires mediact/dependency-guard ^1.0 -> satisfiable by mediact/dependency-guard[1.0.0, ..., 1.1.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.

This initial incompatibility seemed easy enough to fix, but updating only this package isn't enough:

  Problem 1
    - Root composer.json requires composer-plugin-api ^1.1, ^2.0, found composer-plugin-api[2.0.0] but it does not match the constraint.
  Problem 2
    - mediact/testing-suite[1.0.0, ..., 1.0.5] require mediact/coding-standard-phpstorm ^1.0 -> satisfiable by mediact/coding-standard-phpstorm[1.0.0, ..., 1.7.0].
    - mediact/testing-suite[1.1.0, ..., 1.25.1, 2.0.0, ..., 2.3.0] require composer-plugin-api ^1.1 -> found composer-plugin-api[2.0.0] but it does not match the constraint.
    - mediact/coding-standard-phpstorm[1.0.0, ..., 1.7.0] require composer-plugin-api ^1.0 -> found composer-plugin-api[2.0.0] but it does not match the constraint.
    - Root composer.json requires mediact/testing-suite @stable -> satisfiable by mediact/testing-suite[1.0.0, ..., 1.25.1, 2.0.0, ..., 2.3.0].
ksangers commented 4 years ago

Thank you for your clear description of your issue in regards to Composer 2. However this repository is currently not maintained. We are looking into applying maglnet/composer-require-checker ourselves, maybe that could work out for you.

willemstuursma commented 4 years ago

Cheers @ksangers. Can you set the package as abandoned on Packagist?