Support Composer 2
davidhund opened this issue · comments
Problem
Running Composer 2 gives the following error message:
Your requirements could not be resolved to an installable set of packages.
Problem 1
- raph-topo/wp-translations is locked to version 2.0.1 and an update of this package was not requested.
- raph-topo/wp-translations 2.0.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.
Running the Composer command with --no-plugins
does not seem to fix/matter.
Solution
I am not sure if your plugin is compatible out-of-the-box with Composer 2. If so, the solution could be to simply update the require
d version from "composer-plugin-api": "^1.1"
to "composer-plugin-api": "^1.1 || ^2.0"
Thank you @davidhund.
I will delve into it in the next days.
Tests and help are appreciated, of course :-)
Running the Composer command with --no-plugins does not seem to fix/matter.
But that means of course you won't be using WP Translations.
Have you had a chance to look at this @raph-topo ?
I am not a PHP developer, but is there anything specific I could help you with?