Hi,

Based on the error you posted, I could reproduce it locally and I think the
issue is that I don't think the registration mechanism currently supports
regular expression for *{ "requires": { "MediaWiki": "..." } },* so, it's
advised to pick a (minimum) version of MediaWiki core you want your
extension to work with and then use either of the logical operators: ">=",
">", "<=", "<" to cover a range of versions needed.

The most syntax I've seen in almost all extension files is: *{ "requires":
{ "MediaWiki": ">= 1.XX.X" } } *for example: *{ "requires": { "MediaWiki":
">= 1.35.0" } }.*

Maybe Legoktm has a few more ideas on this and I would also say that
pinning to a specific version won't work either like "= 1.35.0" or "1.35.0".

Regards!

*--*

*Derick A.*

*From One Developer to Another!*


On Mon, Sep 12, 2022 at 11:53 AM Derick Alangi <[email protected]>
wrote:

> Hi Sebastian,
>
> Can you change:
> "requires": {
>      "MediaWiki": "1.35.*"
> }
>
> to:
> "requires": {
>      "MediaWiki": ">=1.35.0"
> }
>
> Let me know if that helps.
>
> *--*
>
> *Derick A.*
>
> *From One Developer to Another!*
>
>
> On Mon, Sep 12, 2022 at 11:21 AM Sebastian Berlin <
> [email protected]> wrote:
>
>> I'm having some issues with Jenkins running the latest version of MW for
>> an extension (Wikispeech
>> <https://www.mediawiki.org/wiki/Extension:Wikispeech>). Jenkins run with
>> the 1.40 alpha, but we want the extension to support the latest LTS (1.35
>> as of right now).
>>
>> I tried changing in extension.json to:
>> "requires": {
>>      "MediaWiki": "1.35.*"
>> }
>> which caused an error for Jenkins:
>>
>>> 12:44:09 A dependency error was encountered while installing the
>>> extension "Wikispeech": Wikispeech is not compatible with the current
>>> MediaWiki core (version 1.40.0-alpha), it requires: 1.35.*.
>>>
>> The whole log is here: https://phabricator.wikimedia.org/P34482.
>>
>> How can I specify what version of MW to run with? I've looked at both the
>> MW wiki and Wikitech, but hasn't found any instructions for this.
>>
>> Best,
>>
>> *Sebastian Berlin*
>> Utvecklare/*Developer*
>> Wikimedia Sverige (WMSE)
>>
>> E-post/*E-Mail*: [email protected]
>> Telefon/*Phone*: (+46) 0707 - 92 03 84
>> _______________________________________________
>> Wikitech-l mailing list -- [email protected]
>> To unsubscribe send an email to [email protected]
>>
>> https://lists.wikimedia.org/postorius/lists/wikitech-l.lists.wikimedia.org/
>
>
_______________________________________________
Wikitech-l mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://lists.wikimedia.org/postorius/lists/wikitech-l.lists.wikimedia.org/

Reply via email to