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 Jan 31, 2024
1 parent eaac53e commit 3adf1ce
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 3adf1ce

Please sign in to comment.