Skip to content

Commit 57ea901

Browse files
committed
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 <timofey.kirillov@flant.com>
1 parent 301f050 commit 57ea901

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/build/stage/dependencies.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ func generateChecksumCommand(from string, includePaths, excludePaths []string, r
286286
sortCommandParts := append([]string{}, stapel.SortBinPath(), "-n")
287287
sortCommand := strings.Join(sortCommandParts, " ")
288288

289-
xargsCommandParts := append([]string{}, stapel.XargsBinPath(), stapel.Md5sumBinPath())
289+
xargsCommandParts := append([]string{}, stapel.XargsBinPath(), "-d'\n'", stapel.Md5sumBinPath())
290290
xargsCommand := strings.Join(xargsCommandParts, " ")
291291

292292
md5SumCommand := stapel.Md5sumBinPath()

0 commit comments

Comments
 (0)