build: fix problem with windows line-endings in CI download (#28900)
fixes #28890
This commit is contained in:
parent
eaac53ec38
commit
3adf1cecf2
|
@ -40,7 +40,7 @@ func MustLoadChecksums(file string) *ChecksumDB {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatal("can't load checksum file: " + err.Error())
|
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.
|
// Verify checks whether the given file is valid according to the checksum database.
|
||||||
|
|
Loading…
Reference in New Issue