progress: add prefix to vertex progress group

As buildkit now uses progress groups for the COPY --link instruction
we need to ensure that we additionally prefix the progress group name,
or the target name will be left off in bake commands with more than one
target.

Signed-off-by: Justin Chadwell <me@jedevc.com>
This commit is contained in:
Justin Chadwell 2022-09-02 16:45:51 +01:00
parent aeac42be47
commit 0566e62995
1 changed files with 3 additions and 0 deletions

View File

@ -24,6 +24,9 @@ func (p *prefixed) Write(v *client.SolveStatus) {
if p.force { if p.force {
for _, v := range v.Vertexes { for _, v := range v.Vertexes {
v.Name = addPrefix(p.pfx, v.Name) v.Name = addPrefix(p.pfx, v.Name)
if v.ProgressGroup != nil {
v.ProgressGroup.Name = addPrefix(p.pfx, v.ProgressGroup.Name)
}
} }
} }
p.Writer.Write(v) p.Writer.Write(v)