Maps
Maps copied to clipboard
Issue updating to v10 with composer
I ran into the same issue described here by a reddit user: https://old.reddit.com/r/mediawiki/comments/1170jrz/maps_100_will_not_install_what_to_do/
With the following composer.local.json:
{
"require": {
"mediawiki/maps": "^10.0",
"mediawiki/semantic-media-wiki": "^4.0"
},
"extra": {
"merge-plugin": {
"include": [
"extensions/*/composer.json",
"skins/*/composer.json"
]
}
}
}
I got the following error after running composer update --no-dev
:
Problem 1
- mediawiki/core is present at version 1.0.0+no-version-set and cannot be modified by Composer
- mediawiki/maps[10.0.0] cannot be installed as that would require removing mediawiki/core[1.0.0+no-version-set]. They both replace mediawiki/semantic-maps and thus cannot coexist.
- Root composer.json requires mediawiki/maps ^10.0 -> satisfiable by mediawiki/maps[10.0.0].
I was able to resolve the issue by temporarily removing composer.local.json
, running composer update --no-dev
and then restoring composer.local.json
and updating a second time, but I don't understand what caused the problem in the first place.
The mediawiki/core
package doesn't seem to make any mention of mediawiki/semantic-maps
, so I'm not sure where the conflict comes from.
I would appreciate any help understanding the what causes the problem so I don't have it in the future.
Currently facing the same issue with a MediaWiki 1.41 installation.
Problem 1
- mediawiki/core is present at version dev-main and cannot be modified by Composer
- mediawiki/maps[10.1.0, 10.1.1, 10.1.2] cannot be installed as that would require removing mediawiki/core[dev-main]. They both replace mediawiki/semantic-maps and thus cannot coexist.
- Root composer.json requires mediawiki/maps ~10.1 -> satisfiable by mediawiki/maps[10.1.0, 10.1.1, 10.1.2].
Don't do this: "extensions/*/composer.json",
, it is causing stuff to be loaded multiple times