Merge pull request #45473 from zhangguanzhang/master-commentStr

[builder] make chownComment easy to read
This commit is contained in:
Akihiro Suda 2023-05-12 09:35:10 +09:00 committed by GitHub
commit 9e6370819b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)