rdfio / RDFIO

RDF triples import, export and PHP SPARQL endpoint for Semantic MediaWiki
http://www.mediawiki.org/wiki/Extension:RDFIO
Other
29 stars 12 forks source link

Composer problems on MW later than 1.26 #43

Closed samuell closed 7 years ago

samuell commented 7 years ago

If I try something later than MW 1.26 (such as MW 1.27.3, via the Vagrant box, with this Ansible code), I get errors like:

TASK [semantic_mediawiki : Install Semantic MediaWiki via composer] **** fatal: [virtualbox]: FAILED! => {"changed": false, "failed": true, "msg": "./composer.json has been updated Script ComposerHookHandler::onPreUpdate handling the pre-update-cmd event terminated with an exception [ErrorException] Argument 3 passed to Composer\Package\Link::__construct() must implement interface Composer\Package\LinkConstraint\LinkConstraintInterface, instance of Composer\Semver\Constraint\Constraint given, called in /vagrant/w/includes/composer/ComposerPackageModifier.php on line 44 and defined require [--dev] [--prefer-source] [--prefer-dist] [--no-progress] [--no-update] [--update-no-dev] [--update-with-dependencies] [--ignore-platform-reqs] [--sort-packages] [--] []..."}

... as seen in the screenshot:

terminal_298

samuell commented 7 years ago

This should be the relevant part:

Argument 3 passed to Composer\Package\Link::__construct() must implement interface Composer\Package\LinkConstraint\LinkConstraintInterface, instance of Composer\Semver\Constraint\Constraint given, called in /vagrant/w/includes/composer/ComposerPackageModifier.php on line 44

samuell commented 7 years ago

Things worked better (at least when running manually) by updating composer to the latest version (I just downloaded it in the wiki directory and ran from there).

samuell commented 7 years ago

After upgrading the vagrant box to Ubuntu 16.04, so we also got a newer composer version, this problem went away. Also, it was obviously a problem with the vagrant box, not RDFIO itself.