SemanticMediaWiki / SemanticCite

Allows to manage citation resources using semantic annotations
https://www.semantic-mediawiki.org/wiki/Extension:Semantic_Cite
Other
24 stars 13 forks source link

Composer gives an error pointing to SemanticCite when trying to update it #128

Open vapblack opened 2 months ago

vapblack commented 2 months ago

Setup and configuration

Issue

I'm trying to install wikibase using composer

Produces a stack trace and outputs:

Steps to reproduce the observation (recommendation is to use the sandbox):

When I run this command:

composer update --no-dev -vvv

I get the following output:

Running 2.7.7 (2024-06-10 22:11:12) with PHP 8.0.30 on Linux / 5.14.0-427.18.1.el9_4.x86_64
Reading ./composer.json (/var/www/html/afropedia/composer.json)
Loading config file ./composer.json (/var/www/html/afropedia/composer.json)
Checked CA file /etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem: valid
Failed to initialize global composer: Composer could not find the config file: /home/vap/.config/composer/composer.json

Reading /var/www/html/afropedia/vendor/composer/installed.json
Loading plugin Composer\Installers\Plugin (from composer/installers)
Loading plugin Wikimedia\Composer\Merge\V2\MergePlugin (from wikimedia/composer-merge-plugin)
> init: Wikimedia\Composer\Merge\V2\MergePlugin->onInit
  [merge-plugin] Loading composer.local.json...
  [merge-plugin] Adding mediawiki/sub-page-list
  [merge-plugin] Adding mediawiki/semantic-media-wiki
  [merge-plugin] Adding mediawiki/semantic-cite
> pre-update-cmd: Wikimedia\Composer\Merge\V2\MergePlugin->onInstallUpdateOrDump
  [merge-plugin] Already merged composer.local.json completely
> pre-update-cmd: ComposerHookHandler::onPreUpdate
This file is part of the SemanticCite extension, it is not a valid entry point.

I asked in the composer github page, and I was directed here, since the error points to SemanticCite as a culprit.