瀏覽代碼

make chownComment easy to read

Signed-off-by: zhangguanzhang <zhangguanzhang@qq.com>
zhangguanzhang 2 年之前
父節點
當前提交
43b1afb2cf
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      builder/dockerfile/internals.go

+ 1 - 1
builder/dockerfile/internals.go

@@ -114,7 +114,7 @@ func (b *Builder) performCopy(ctx context.Context, req dispatchRequest, inst cop
 
 	var chownComment string
 	if inst.chownStr != "" {
-		chownComment = fmt.Sprintf("--chown=%s", inst.chownStr)
+		chownComment = fmt.Sprintf("--chown=%s ", inst.chownStr)
 	}
 	commentStr := fmt.Sprintf("%s %s%s in %s ", inst.cmdName, chownComment, srcHash, inst.dest)