Skip to content

Commit

Permalink
build: fix problem with windows line-endings in CI download (#28900)
Browse files Browse the repository at this point in the history
fixes #28890
  • Loading branch information
holiman authored and ucwong committed Jan 31, 2024
1 parent 940200e commit 510f49a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/build/download.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 510f49a

Please sign in to comment.