Fabric API

Fabric API

106M Downloads

Auto-updating link prevention via version-numbered jar names

YogoPig opened this issue ยท 1 comments

commented

If you are using something like docker which benefits from a compose file that can automatically generate a server, constant stable download links to the latest version of a mod are a must. Github has integrated a link to the latest release of a project but it requires the release to have no version number as the file must have the same name in this link.

For example the current latest download link is: https://github.com/FabricMC/fabric/releases/latest/download/fabric-api-0.102.1+1.21.1.jar

However, when the version changes this will break.

To fix this, naming the jar "fabric-api.jar" would allow for the link to stay the same, and always download the latest version. This link would be: https://github.com/FabricMC/fabric/releases/latest/download/fabric-api.jar

Should this be implemented, this link would always download the latest version of fabric API no matter what.

commented

I dont think automatically downloading the latest version is a good idea tbh, as sometimes we release backports for older versions of minecraft that would become the latest, or even just timing wise between normal releses.