Automating MediaWiki upgrades (e.g. for Docker containers) requires a way to automatically fetch the latest version of extension X for MediaWiki 1.Y.
Current link format (example: PluggableAuth):
(A) https://extdist.wmflabs.org/dist/extensions/PluggableAuth-REL1_35-efff551.tar.gz
A more useful link format for automation would be:
(B) https://extdist.wmflabs.org/dist/extensions/PluggableAuth-REL1_35.tar.gz
A symlink from B to A should automatically always be created.
Alternatively (or more elegantly), Special:ExtensionDistributor should provide a documented way for automatically fetching the necessary link, ideally as a 307 redirect to the .tar.gz file. If it exists, where can I find the documentation?
I'm currently parsing the HTML output of https://extdist.wmflabs.org/dist/extensions/ or https://www.mediawiki.org/wiki/Special:ExtensionDistributor?extdistname=PluggableAuth&extdistversion=REL1_35 , which seems very unelegant and error-prone to me.