Merge pull request #1305 from jedevc/progress-group-prefixed-writer

progress: add prefix to vertex progress group
This commit is contained in:
CrazyMax 2022-11-28 13:32:27 +01:00 committed by GitHub
commit ae59e1f72e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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 {
for _, v := range v.Vertexes {
v.Name = addPrefix(p.pfx, v.Name)
if v.ProgressGroup != nil {
v.ProgressGroup.Name = addPrefix(p.pfx, v.ProgressGroup.Name)
}
}
}
p.Writer.Write(v)