mirror of
https://gitea.com/Lydanne/buildx.git
synced 2025-07-09 21:17:09 +08:00
progress: avoid double logs when multiple targets build same step
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
This commit is contained in:
@ -8,14 +8,14 @@ import (
|
||||
|
||||
func WithPrefix(w Writer, pfx string, force bool) Writer {
|
||||
return &prefixed{
|
||||
main: w,
|
||||
pfx: pfx,
|
||||
force: force,
|
||||
Writer: w,
|
||||
pfx: pfx,
|
||||
force: force,
|
||||
}
|
||||
}
|
||||
|
||||
type prefixed struct {
|
||||
main Writer
|
||||
Writer
|
||||
pfx string
|
||||
force bool
|
||||
}
|
||||
@ -26,7 +26,7 @@ func (p *prefixed) Write(v *client.SolveStatus) {
|
||||
v.Name = addPrefix(p.pfx, v.Name)
|
||||
}
|
||||
}
|
||||
p.main.Write(v)
|
||||
p.Writer.Write(v)
|
||||
}
|
||||
|
||||
func addPrefix(pfx, name string) string {
|
||||
|
Reference in New Issue
Block a user