raffaelj / cpmp-lib-skeleton

Skeleton to use CpMultiplane and Cockpit CMS as libraries with a clean root directory
MIT License
2 stars 1 forks source link

Composer 2 #1

Closed Raruto closed 2 years ago

Raruto commented 4 years ago

Hi Raffael,

following the composer and docker installation i got the following warning coming from the CpMultiplane plugin:

The "oomphinc/composer-installers-extender" plugin was skipped because it requires a Plugin API version ("^1.0") that do es not match your Composer installation ("2.0.0"). You may need to run composer update with the "--no-plugins" option. Warning: You forced the install of 1.10.17 via --1, but 2.0.7 is the latest stable version. Updating to it via composer self-update --stable is recommended.

Any plans regard uptading oomphinc's plugin to version 2?

If needed, here's how to switch between composer versions:

composer self-update --1
composer self-update --2
raffaelj commented 3 years ago

I'm on openSUSE Tumbleweed and the latest official composer version is 1.10.16. This is why I still used the old one.

Thanks for the hint. sudo composer self-update --2 did the trick, but eventually it will downgrade again after the next system update...

And composer 2.x has a few more events, that weren't available in 1.x. Maybe I can replace the post-autoload-dump now with more precise events...

Let me do some tests first. But of course I'm always open to keep software up to date. Hopefully I find some time next week.

Raruto commented 3 years ago

Ok, thanks for the note.

From what can I see here, the latest release of oomphinc/composer-installers-extender should be compatible with both versions of composer.

Have a nice Day, Raruto

raffaelj commented 3 years ago

I updated the composer-installers-extender dependency in CpMultiplane to ^2.0, but I have to do some work before I can release CpMultiplane 0.3.0 and than cpmp-lib-skeleton 0.1.1. So right now, the update only works if you require "raffaelj/cpmultiplane": "dev-master" in your composer.json.

raffaelj commented 3 years ago

I created a new branch composer2, so installing this skeleton should work without error messsages and with dependencies in the right places again.

composer create-project --ignore-platform-reqs raffaelj/cpmp-lib-skeleton:dev-composer2 .