Browse Source

make chownComment easy to read

Signed-off-by: zhangguanzhang <zhangguanzhang@qq.com>
zhangguanzhang 2 năm trước cách đây
mục cha
commit
43b1afb2cf
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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
 	var chownComment string
 	if inst.chownStr != "" {
 	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)
 	commentStr := fmt.Sprintf("%s %s%s in %s ", inst.cmdName, chownComment, srcHash, inst.dest)