add a flag to control the hash checking#43
Conversation
|
|
How realistic is shipping zlib-ng? |
|
Right now, I know that cachyos defaults to zlib-ng instead of baseline zlib. |
I actually mean via JNI bindings we ship ourselves to use the same zlib everywhere. note: It is however true that we should not necessarily rely on reproducible compression to begin with, but I wonder if disabling the hash check is actually to our benefit. |
|
I want to have the users who encounter this issue have an alternative to installing the loader. |
While doing a reference check might work I am worried that zlib-ng only compresses differently in some, but not all cases. Then a reference check might look like the zlib implementation used by the JDK is what we expect, but it still produces differences in some cases. Regarding your change: I'd not merge this flag as-is, instead I'd want the flag to continue to print that there was a hash mismatch, but simply not delete the resulting file (and continue). |
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
|
I'll try to take a closer look tomorrow |
|
🚀 This PR has been released as LegacyInstaller version |
|
Thanks for merging this. |
Usually not, no. But NF needs to bump the installer version to make use of this (gradle.properties over there). edit: we have backported a shit ton to older versions so it's possible to backport this too, actually. |
|
Hi, so sorry to bother but is there any chance this could be backported to 47.1.106 or similar? i want to play a 1.20.1 modpack but i'm having this issue with the hash check due to having to use an older version of NeoForge. |
Address the compatibility issue with zlib-ng-compat, which is now shipped in place of zlib in various Linux distros. This change introduces an option to disable hash mismatches reported on processors.
I plan to integrate it with the ForgeWrapper.