Wikibase does not use extension registration (T88258) and it does not load the Composer autoloader (505e4860cc72) which breaks its usage on Vagrant (dependencies do not get autoloaded, resulting in a Class 'Wikibase\DataModel\Entity\ItemId' not found error). This was worked around in T201615 / 6254e72 by using composer-merge-plugin to make MediaWiki core install the Wikibase dependencies, but now it seems broken again (the same error is raised, and core's composer.lock / installed.json does not contain ẇikibase/data-model`).
Description
Details
Subject | Repo | Branch | Lines +/- | |
---|---|---|---|---|
Fix Composer autoloading trick in wikidata role | mediawiki/vagrant | master | +13 -12 |
Related Objects
- Mentioned In
- rMWVA3d47efaa7209: Fix Composer autoloading trick in wikidata role
T228428: Vagrant role for the MachineVision extension
T201615: Wikibase on Vagrant: Class 'Wikibase\DataModel\Entity\ItemId' not found - Mentioned Here
- T88258: Convert WikibaseRepository, WikibaseClient, WikibaseLib and WikibaseView to use extension registration
T201615: Wikibase on Vagrant: Class 'Wikibase\DataModel\Entity\ItemId' not found
rEWBA505e4860cc72: Remove optional dependency on Wikibase local vendor directory
rMWVA6254e72ffc34: Add composer include file for Wikibase
Event Timeline
Core's composer.json has an extra/merge-plugin entry for composer.local.json which has one for ../settings.d/composer/*.json which includes a file created by the wikidata role which has a merge-plugin entry for extensions/Wikibase/composer.json. Maybe recursive merge declarations are broken somehow?
Actually it does get installed when I run Composer manually. So this is probably just an ordering issue, with composer update running before the merge-plugin fragment is added.
Change 525097 had a related patch set uploaded (by Gergő Tisza; owner: Gergő Tisza):
[mediawiki/vagrant@master] Fix Composer autoloading trick in wikidata role
Change 525097 had a related patch set uploaded (by Gergő Tisza; owner: Gergő Tisza):
[mediawiki/vagrant@master] Fix Composer autoloading trick in wikidata role
Change 525097 merged by jenkins-bot:
[mediawiki/vagrant@master] Fix Composer autoloading trick in wikidata role