FabricMC / fabric-loom

Gradle build system plugin used to automate the setup of a minecraft mod development environment.
MIT License
226 stars 194 forks source link

Add SHA1 suffix to intermediaries #1141

Open Wyvest opened 3 weeks ago

Wyvest commented 3 weeks ago

Having two or more different intermediaries for one version in a project breaks. Although this isn't possible in vanilla Loom, one example would be loading Legacy Forge 1.8.9 and Legacy Fabric 1.8.9 in one project (via something like preprocessor). Attaching a differentiating name to each intermediary we download, we use this to differentiate between intermediaries.

To be honest I made this around a year ago and never PRed it here so this might be a really terrible approach. Please feel free to give feedback.

SpaceWalkerRS commented 1 week ago

Isnt this what the different intermediary providers are for? You can create a new provider and change the name and it'll end up in a different cache file.

Wyvest commented 1 week ago

Isnt this what the different intermediary providers are for? You can create a new provider and change the name and it'll end up in a different cache file.

Using the loom extension in your buildscript you can only set the intermediary URL. Besides, it isn't specified that you have to change the name and URL for it to work.