meza
meza copied to clipboard
Error 500 when cloning GraphViz
Environment
- VM on OVH
- Operating System: CentOS Linux release 7.6.1810 (Core)
- meza version hash: 4b8b61e
Issue details
When cloning mediawiki/graph-viz, I get an error 500. This is a similar issue to #1167 (a redirection problem from gerrit).
Since this module must be installed with composer, is it possible to update meza-deploy to use a git repository (I would use the github mirror) as a composer source for installation? For example:
- name: GraphViz
composer: https://github.com/wikimedia/mediawiki-extensions-GraphViz.git
version: REL1_31
I don't think this is the same as #1167. The problem with VE was that it had a .gitmodules
file [1] that pointed to a location in Gerrit, and the URL structure of Gerrit changed. They made the fix to master
branch of VE, but didn't backport it to older versions (until we asked for the backport).
GraphViz does not have a .gitmodules
file. Also it's composer.json
file doesn't appear to be requiring anything strange. Can you send exactly what you've put in your MezaLocalExtensions.yml
when you got errors? I don't think the composer: https://github.com/...
will work. Also, using version: REL1_31
is probably not what you want with Composer. Composer generally is supposed to be used with released versions instead of branches. You can use branches, but it's rarely what you want. So you probably want to specify version: ~2.0
or version: 3.1.0
or something like that. You can see available versions here [2] and read about Composer version constraints here [3].
[1] https://github.com/wikimedia/mediawiki-extensions-VisualEditor/blob/master/.gitmodules#L3 [2] https://packagist.org/packages/mediawiki/graph-viz [3] https://getcomposer.org/doc/articles/versions.md
It's the same problem as #1167. The error generated is:
fatal: unable to access 'https://gerrit.wikimedia.org/r/p/mediawiki/extensions/GraphViz.git/': The requested URL returned error: 500
The /r/p path leads to a redirection. This is what I tried:
- name: GraphViz
composer: mediawiki/graph-viz
version: "^3.1"
Hmm...okay I'm guessing the problem doesn't reside in the code itself, but in how Packagist is setup. Probably the package owner needs to go into Packagist and update this URL:
Are you on the MediaWiki mailing lists [1]? You'll probably get the fastest response by emailing wikitech-l.
[1] https://www.mediawiki.org/wiki/Mailing_lists
I'm not on the mailing list. Besides, I don't know what change I could ask for.