build: fix problem with windows line-endings in CI download (#28900)

fixes #28890
This commit is contained in:
Martin HS
2024-01-31 10:45:20 +02:00
committed by GitHub
parent eaac53ec38
commit 3adf1cecf2
+1 -1
View File
@@ -40,7 +40,7 @@ func MustLoadChecksums(file string) *ChecksumDB {
if err != nil {
log.Fatal("can't load checksum file: " + err.Error())
}
return &ChecksumDB{strings.Split(string(content), "\n")}
return &ChecksumDB{strings.Split(strings.ReplaceAll(string(content), "\r\n", "\n"), "\n")}
}
// Verify checks whether the given file is valid according to the checksum database.