From 29b6a696604d5bc80d1722e3ba123558bce7c7c9 Mon Sep 17 00:00:00 2001 From: danf Date: Tue, 28 Jun 2016 11:09:39 +0300 Subject: [PATCH] Fix Malformed history layer - missing Sprintf in append of shell in Builder run config Signed-off-by: Dan Feldman --- builder/dockerfile/internals.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/builder/dockerfile/internals.go b/builder/dockerfile/internals.go index c9fcb15f54..a5a46e538a 100644 --- a/builder/dockerfile/internals.go +++ b/builder/dockerfile/internals.go @@ -172,7 +172,7 @@ func (b *Builder) runContextCommand(args []string, allowRemote bool, allowLocalD } cmd := b.runConfig.Cmd - b.runConfig.Cmd = strslice.StrSlice(append(getShell(b.runConfig), "#(nop) %s %s in %s ", cmdName, srcHash, dest)) + b.runConfig.Cmd = strslice.StrSlice(append(getShell(b.runConfig), fmt.Sprintf("#(nop) %s %s in %s ", cmdName, srcHash, dest))) defer func(cmd strslice.StrSlice) { b.runConfig.Cmd = cmd }(cmd) if hit, err := b.probeCache(); err != nil {