From 57ea901900710a40dae90065e7687241b68f68b4 Mon Sep 17 00:00:00 2001 From: Timofey Kirillov Date: Fri, 1 Apr 2022 19:10:18 +0300 Subject: [PATCH] fix(dependencies): broken imports checksum when files names contain spaces By default xargs splits input files list by "space or newline", use "newline" delimiter instead. Signed-off-by: Timofey Kirillov --- pkg/build/stage/dependencies.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/build/stage/dependencies.go b/pkg/build/stage/dependencies.go index 7ab9396311..cd6d827ad0 100644 --- a/pkg/build/stage/dependencies.go +++ b/pkg/build/stage/dependencies.go @@ -286,7 +286,7 @@ func generateChecksumCommand(from string, includePaths, excludePaths []string, r sortCommandParts := append([]string{}, stapel.SortBinPath(), "-n") sortCommand := strings.Join(sortCommandParts, " ") - xargsCommandParts := append([]string{}, stapel.XargsBinPath(), stapel.Md5sumBinPath()) + xargsCommandParts := append([]string{}, stapel.XargsBinPath(), "-d'\n'", stapel.Md5sumBinPath()) xargsCommand := strings.Join(xargsCommandParts, " ") md5SumCommand := stapel.Md5sumBinPath()