From 4d32a9e81a3dd49b25044b47ef1b4d9c0f237d51 Mon Sep 17 00:00:00 2001 From: Martin Holst Swende Date: Wed, 31 Jan 2024 08:13:22 +0100 Subject: [PATCH] build: fix problem with windows line-endings in CI download fixes #28890 --- internal/build/download.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/build/download.go b/internal/build/download.go index 903d0308dfd..fda573df833 100644 --- a/internal/build/download.go +++ b/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.