Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
YogoPig opened this issue Aug 15, 2024 · 1 comment
Open

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

YogoPig opened this issue Aug 15, 2024 · 1 comment

Comments

@YogoPig
Copy link

YogoPig commented Aug 15, 2024

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 YogoPig changed the title Auto-updating link prevention via specific jar names Auto-updating link prevention via version-numbered jar names Aug 15, 2024
@modmuss50
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants