llaville / php-compatinfo

Library that find out the minimum version and the extensions required for a piece of code to run
https://llaville.github.io/php-compatinfo/7.1/
Other
372 stars 20 forks source link

Compatibility with Composer 2.2 for composer-plugin #309

Closed remicollet closed 2 years ago

remicollet commented 2 years ago

With composer 2.2

composer/package-versions-deprecated contains a Composer plugin which is currently not in your allow-plugins config. See https://getcomposer.org/allow-plugins
Do you trust "composer/package-versions-deprecated" to execute code and wish to enable it now? (writes "allow-plugins" to composer.json) [y,n,d,?] y

If accepted, changes in compooser.json

diff --git a/composer.json b/composer.json
index 06575ebe..e22cc319 100644
--- a/composer.json
+++ b/composer.json
@@ -60,6 +60,9 @@
     "minimum-stability": "dev",
     "prefer-stable": true,
     "config": {
-        "optimize-autoloader": true
+        "optimize-autoloader": true,
+        "allow-plugins": {
+            "composer/package-versions-deprecated": true
+        }
     }
 }
llaville commented 2 years ago

Info about Composer 2.2 (future) LTS: https://github.com/composer/composer/releases/tag/2.2.0-RC1