Page MenuHomePhabricator

Does the extension ExternalData require "composer/installers": "~2.1"?
Closed, ResolvedPublic

Description

When I tried to install the latest version of ExternalData I see the following error

#76 23.48   Problem 1
#76 23.48     - The requested package composer/installers >=1.0.1, 1.*,>=1.0.1, ^2|^1.0.1, ~2.1, 1.*,>=1.0.1, >=1.0.1, ~1.0, >=1.0.1, >=1.0.1, ~2.1, ^1.0.1, >=1.0.1, ^2|^1.0.1, ^2|^1.0.1, >=1.0.1, >1.0.12 exists as composer/installers[1.x-dev, dev-main, 2.x-dev, v1.0.0, v1.0.1, v1.0.10, v1.0.11, v1.0.12, v1.0.13, v1.0.14, v1.0.15, v1.0.16, v1.0.17, v1.0.18, v1.0.19, v1.0.2, v1.0.20, v1.0.21, v1.0.22, v1.0.23, v1.0.24, v1.0.25, v1.0.3, v1.0.4, v1.0.5, v1.0.6, v1.0.7, v1.0.8, v1.0.9, v1.1.0, v1.10.0, v1.11.0, v1.12.0, v1.2.0, v1.3.0, v1.4.0, v1.5.0, v1.6.0, v1.7.0, v1.8.0, v1.9.0, v2.0.0, v2.0.0-alpha1, v2.0.1, v2.1.0, v2.1.1, v2.2.0] but these are rejected by your constraint.
#76 23.48   Problem 2
#76 23.48     - Installation request for mediawiki/semantic-media-wiki 4.x-dev -> satisfiable by mediawiki/semantic-media-wiki[4.x-dev].
#76 23.48     - mediawiki/semantic-media-wiki 4.x-dev requires composer/installers 1.*,>=1.0.1 -> satisfiable by composer/installers[1.x-dev, v1.0.1, v1.0.10, v1.0.11, v1.0.12, v1.0.13, v1.0.14, v1.0.15, v1.0.16, v1.0.17, v1.0.18, v1.0.19, v1.0.2, v1.0.20, v1.0.21, v1.0.22, v1.0.23, v1.0.24, v1.0.25, v1.0.3, v1.0.4, v1.0.5, v1.0.6, v1.0.7, v1.0.8, v1.0.9, v1.1.0, v1.10.0, v1.11.0, v1.12.0, v1.2.0, v1.3.0, v1.4.0, v1.5.0, v1.6.0, v1.7.0, v1.8.0, v1.9.0] but these conflict with your requirements or minimum-stability.
#76 23.48 
#76 23.48 Running update with --no-dev does not mean require-dev is ignored, it just means the packages will not be installed. If dev requirements are blocking the update you have to resolve those problems.
#76 ERROR: executor failed running [/bin/sh -c composer install --no-dev --ignore-platform-reqs]: exit code: 2

(cf. https://github.com/MaRDI4NFDI/docker-wikibase/actions/runs/4255779680/jobs/7403828820)
Downgrading to version 3.1 of the ExternalData resolves the problem.

I am now asking myself, if this is a problem with ExternalData or another extension (which one)?

Event Timeline

I am having the same issue which I mentioned on the talk page. You can just delete the "composer/installers": "~2.1", line since I think it's required only if you want to install via composer.

Removing a line in a docker context requires some sed fiddling. I would consider that as suboptimal.

Aklapper renamed this task from Does the extenion ExternalData require "composer/installers": "~2.1"? to Does the extension ExternalData require "composer/installers": "~2.1"?.Mar 12 2023, 8:33 PM

This dependency was introduced by f5f258a by rvogel (@Osnard).

Change 942479 had a related patch set uploaded (by Yaron Koren; author: Yaron Koren):

[mediawiki/extensions/ExternalData@master] Add Composer v1 support to composer.json

https://gerrit.wikimedia.org/r/942479

Change 942479 merged by jenkins-bot:

[mediawiki/extensions/ExternalData@master] Add Composer v1 support to composer.json

https://gerrit.wikimedia.org/r/942479

Yaron_Koren claimed this task.

I believe you can now use External Data with Composer version 1 again - sorry this took a while to fix.