openeuropa / composer-artifacts

Composer plugin that allows to download a specified artifact instead of the project source.
European Union Public License 1.2
10 stars 3 forks source link

openeuropa/composer-artifacts 0.13 having composer-plugin-api requirement issue #32

Open consose opened 3 years ago

consose commented 3 years ago

Dear Sir/Madame, I'm trying to install the OE theme for a fresh installation of drupal 9 (v 9.2.6) from the branch at: https://github.com/openeuropa/oe_theme/tree/a67144b2a44fb1b825db31060791052c3281f429

This requires to have "openeuropa/composer-artifacts" installed. If I try to install it using composer via:

composer require openeuropa/composer-artifacts

however it is not installed and I get the problem:

Note that I have the latest version of composer, having composer-plugin-api = 2.1.0.

The problem is in the composer.json file of openeuropa/composer-artifacts, which is:

https://github.com/openeuropa/composer-artifacts/blob/master/composer.json

Here it is specified

"composer-plugin-api": "^1.1 || ^2.0",

but the logic OR is not recognised by composer and it only takes the ^1.1, which is old.

Would putting "composer-plugin-api": "^2.0", solve the issue? If so, could you please submit this correction in the branch, so that it will be possible to install composer-artifacts with composer 2?

Or can you suggest alternatives maybe?

Please let me know.

Kind regards, Sergio

brummbar commented 3 years ago

We still didn't release a version that is compatible with composer 2.x, so you need to use dev-master at the moment.

consose commented 3 years ago

Ciao Francesco, thanks for your reply! I'm not finding a branch named as dev-master at https://github.com/openeuropa/composer-artifacts The only branches I see are: master; 13-provider-plugins; OPENEUROPA-2095; OPENEUROPA-2258-test-php72 I have also tried to do: composer require-dev openeuropa/composer-artifacts but the require-dev is not recognized.

Could you please give me some other pointers on how to get the dev-master branch? Cheers!

Best, Sergio

brummbar commented 2 years ago

Sorry Sergio, didn't see this before. "dev-master" is a way to indicate the master branch in the composer.json.