Closed samuell closed 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
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).
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.
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: