Skip to content

Commit

Permalink
fix(dependencies): broken imports checksum when files names contain s…
Browse files Browse the repository at this point in the history
…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 57ea901
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/build/stage/dependencies.go
Expand Up @@ -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()
Expand Down

0 comments on commit 57ea901

Please sign in to comment.