On Sat, Mar 28, 2020 at 2:35 PM Jordi Boggiano <j.boggiano@seld.be> wrote:
Hey,
I am emailing you because you are the maintainer on packagist.org of a
popular Composer plugin. If this falls in the wrong inbox please
ignore.As we are getting Composer 2.0 closer and closer to a stable release,
and would like to get more people involved with testing it, it is
quite important to get the most common plugins to support our 2.0
branch. Otherwise many users will not be able to try the latest
Composer snapshots when we switch them to 2.0.If you'd like to help, here is how:
- Get composer's 2.0 branch easily using this phar file
https://seld.be/composer2.phar (sha256sum is
b7863783a37cea776d4eeab7843f4e968021456ce6df01358ce9c2cc85f3247a)
- Set up a trial project requiring your plugin from a local path repo
so you can easily work on it and iterate, e.g.
"repositories": [
{"type":"path", "url": "../../my-plugin"}
],
- Change your plugin's composer.json to require composer-plugin-api
"^1.0 || ^2.0" (to begin with)
- Update your main plugin entry point class to implement the new
PluginInterface methods, see e.g.
https://github.com/composer/installers/commit/d2a98321ab66945396ef147387f93eee4c05089f#diff-e236c450b11f27e4bb81a5069bc619bc
- Run php composer2.phar update in that trial project to play with
your plugin using Composer 2, and fix any issues you run into.
- If at all possible, releasing a version which supports both
composer-plugin-api ^1.0 and ^2.0 is the best option really as that
will allow people to use whichever composer version within a project,
and makes the transition smoother. I am sure the more involved plugins
will not be able to do this but I think for most it should be
possible.
- Finally, report issues to us at
https://github.com/composer/composer/issues if anything is broken or
unclear, we'll try to help out ASAP. There is no changelog nor
migration guide yet sorry about that, but I think most plugins don't
really integrate so tightly with Composer that they will need it.Thanks for your attention and help getting the Composer v2 ecosystem
up to speed!Best,
Jordi