Skip to content

Commit a55b446

Browse files
danfTibor Vass
authored andcommitted
Fix Malformed history layer - missing Sprintf in append of shell in Builder run config
Signed-off-by: Dan Feldman <danf@jfrog.com> (cherry picked from commit 29b6a69)
1 parent 246d503 commit a55b446

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

builder/dockerfile/internals.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ func (b *Builder) runContextCommand(args []string, allowRemote bool, allowLocalD
172172
}
173173

174174
cmd := b.runConfig.Cmd
175-
b.runConfig.Cmd = strslice.StrSlice(append(getShell(b.runConfig), "#(nop) %s %s in %s ", cmdName, srcHash, dest))
175+
b.runConfig.Cmd = strslice.StrSlice(append(getShell(b.runConfig), fmt.Sprintf("#(nop) %s %s in %s ", cmdName, srcHash, dest)))
176176
defer func(cmd strslice.StrSlice) { b.runConfig.Cmd = cmd }(cmd)
177177

178178
if hit, err := b.probeCache(); err != nil {

0 commit comments

Comments
 (0)