fabric icon indicating copy to clipboard operation
fabric copied to clipboard

Auto-updating link prevention via version-numbered jar names

Open YogoPig opened this issue 1 year ago • 1 comments

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.

YogoPig avatar Aug 15 '24 06:08 YogoPig

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.

modmuss50 avatar Aug 15 '24 07:08 modmuss50