FabricMC / fabric

Essential hooks for modding with Fabric.
Apache License 2.0
2.29k stars 400 forks source link

Auto-updating link prevention via version-numbered jar names #4031

Open YogoPig opened 1 month ago

YogoPig commented 1 month ago

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.

modmuss50 commented 1 month ago

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.