You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I need to use this script to create an individual file release for a project in which I have not SSH access (yes, I know it sounds bad). However, when I ran it Semantic MediaWiki nor related extensions are installed in the release due a compatibility problem of composer-merge-plugin with Composer 2, as you can see in wikimedia/composer-merge-plugin#184.
I got the same problem:
Problem 1
- Root composer.json requires composer-plugin-api ^1.1, found composer-plugin-api[2.0.0] but it does not match the constraint.
Problem 2
- Root composer.json requires wikimedia/composer-merge-plugin 1.4.1 -> satisfiable by wikimedia/composer-merge-plugin[v1.4.1].
- wikimedia/composer-merge-plugin v1.4.1 requires composer-plugin-api ^1.0 -> 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.
My workaround was to download the latest release of Composer 1 and ran myself composer-1.phar update --no-dev --prefer-source.
I think this script should detect if the installed Composer is the version 1.x or 2.x, due 2.x is already available and is being used. If you are agree, I can open a PR for this change in order to:
Detect the version of Composer.
If the installed Composer is 2.x:
The script download Composer 1.
Run composer-1.phar update --no-dev --prefer-source.
Remove composer-1.phar
If the installed Composer is 1.x, just skipped the process described above and continue.
What do you think?
P.S. Just a note that maybe should be another issue: the selection of the version branchs to create the individual release may be chosen interactively by the user or at least warn the users they can change the branch variables (I can contribute with that too).
The text was updated successfully, but these errors were encountered:
I need to use this script to create an individual file release for a project in which I have not SSH access (yes, I know it sounds bad). However, when I ran it Semantic MediaWiki nor related extensions are installed in the release due a compatibility problem of
composer-merge-plugin
with Composer 2, as you can see in wikimedia/composer-merge-plugin#184.I got the same problem:
My workaround was to download the latest release of Composer 1 and ran myself
composer-1.phar update --no-dev --prefer-source
.I think this script should detect if the installed Composer is the version 1.x or 2.x, due 2.x is already available and is being used. If you are agree, I can open a PR for this change in order to:
composer-1.phar update --no-dev --prefer-source
.composer-1.phar
What do you think?
P.S. Just a note that maybe should be another issue: the selection of the version branchs to create the individual release may be chosen interactively by the user or at least warn the users they can change the branch variables (I can contribute with that too).
The text was updated successfully, but these errors were encountered: