Browse Source

Merge pull request #45473 from zhangguanzhang/master-commentStr

[builder] make chownComment easy to read
Akihiro Suda 2 years ago
parent
commit
9e6370819b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      builder/dockerfile/internals.go

+ 1 - 1
builder/dockerfile/internals.go

@@ -122,7 +122,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)