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

@@ -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);