fix(deploader): ignore leading/trailing whitespace from checksum files

This commit is contained in:
FalsePattern committed 2026-05-29 19:15:16 +02:00
1 parent f8089570bd
commit 2311ab0853
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -5,7 +5,7 @@ plugins {
group = "com.falsepattern"
//bump this after ANY change to the deploader!
val deploaderVersion = 8
val deploaderVersion = 9
minecraft_fp {
java {
@@ -1307,7 +1307,7 @@ public class DependencyLoaderImpl {
private ChecksumStatus getChecksumStatus(Path file, String checksumType, Path checksumFile) throws IOException {
val fileHash = hash(checksumType, file);
val referenceHash = new String(Files.readAllBytes(checksumFile));
val referenceHash = new String(Files.readAllBytes(checksumFile)).trim();
if (!fileHash.equals(referenceHash)) {
LOG.error("Failed {} checksum validation for {}.", checksumType, artifactLogName);
checkedDelete(file);