From 3e01b0487207418eb404edbaf9eb776df22743ac Mon Sep 17 00:00:00 2001 From: Carlos Nihelton Date: Mon, 25 Jul 2022 07:58:28 -0300 Subject: [PATCH] Use strings.Fields to split the checksum file. The WSL pipeline checksum file has more whistespaces between the fields. strings.split fails to produce the desired output. strings.Fields can treat multiple whitespaces as one. --- wsl-builder/prepare-build/build.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wsl-builder/prepare-build/build.go b/wsl-builder/prepare-build/build.go index 9aa6f1382..1e2e63d99 100644 --- a/wsl-builder/prepare-build/build.go +++ b/wsl-builder/prepare-build/build.go @@ -330,7 +330,7 @@ func checksumMatches(path, origName, checksumPath string) (err error) { var found bool for _, l := range text { - e := strings.Split(l, " ") + e := strings.Fields(l) if len(e) != 2 { continue }