build: fix problem with windows line-endings in CI download (#28900)

fixes #28890
pull/28471/merge
Martin HS 10 months ago committed by GitHub
parent eaac53ec38
commit 3adf1cecf2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      internal/build/download.go

@ -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.

Loading…
Cancel
Save