Page MenuHomePhabricator

"package mediawiki/mediawiki could not be found in any version"
Closed, ResolvedPublic

Description

This happens on master and in release 1.27:

[~/www/wiki-27/extensions/Collection]# php ../../composer/composer.phar update
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
Problem 1

  • The requested package mediawiki/mediawiki could not be found in any version, there may be a typo in the package name.

Potential causes:

Read https://getcomposer.org/doc/articles/troubleshooting.md for further common problems.

Event Timeline

Raymond created this task.Jul 24 2016, 2:12 PM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptJul 24 2016, 2:12 PM

I don't think so. I updated a bunch of extensions in a wiki and this extension was the only one with this error.

Reedy added a subscriber: Reedy.EditedJul 24 2016, 3:38 PM

I don't see any other extension listing mediawiki in require (maybe some of the Semantic extensions do, I dunno. No recent versions checked out other than that's in gerrit), only Wikidata listing it in in a conflict, and then it's < 1.25

I'm just gonna remove the attribute

Change 300753 had a related patch set uploaded (by Reedy):
Remove mediawiki/mediawiki from require

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

Danny_B removed a subscriber: Danny_B.Jul 24 2016, 4:04 PM
Danny_B renamed this task from Composer: "package mediawiki/mediawiki could not be found in any version" to "package mediawiki/mediawiki could not be found in any version".Jul 24 2016, 10:06 PM
Danny_B added a project: Composer.

@Raymond, what version of composer were you using?

Ah, nvm. Running composer in the extension root doesn't work with the mediawiki/mediawiki dependency. But since there's already a wfUseMW call in the extension, it can safely be removed, which Reedy did.

Change 300753 merged by jenkins-bot:
Remove mediawiki/mediawiki from require

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

Reedy closed this task as Resolved.Jul 26 2016, 12:24 AM
Reedy claimed this task.