Skip to content

Commit 3adf1ce

Browse files
authored
build: fix problem with windows line-endings in CI download (#28900)
fixes #28890
1 parent eaac53e commit 3adf1ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/build/download.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ func MustLoadChecksums(file string) *ChecksumDB {
4040
if err != nil {
4141
log.Fatal("can't load checksum file: " + err.Error())
4242
}
43-
return &ChecksumDB{strings.Split(string(content), "\n")}
43+
return &ChecksumDB{strings.Split(strings.ReplaceAll(string(content), "\r\n", "\n"), "\n")}
4444
}
4545

4646
// Verify checks whether the given file is valid according to the checksum database.

0 commit comments

Comments
 (0)