Skip to content
Permalink
Browse files
fix(dependencies): broken imports checksum when files names contain s…
…paces

By default xargs splits input files list by "space or newline", use "newline" delimiter instead.

Signed-off-by: Timofey Kirillov <timofey.kirillov@flant.com>
  • Loading branch information
distorhead committed Apr 1, 2022
1 parent 301f050 commit 57ea901900710a40dae90065e7687241b68f68b4
Showing with 1 addition and 1 deletion.
  1. +1 −1 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()

0 comments on commit 57ea901

Please sign in to comment.