Skip to content

Commit

Permalink
Merge pull request #1903 from CortexFoundation/dev
Browse files Browse the repository at this point in the history
build: fix problem with windows line-endings in CI download
  • Loading branch information
ucwong authored Feb 1, 2024
2 parents 6c90653 + 510f49a commit ae9ecd9
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 ae9ecd9

Please sign in to comment.