mirror of
https://gitea.com/Lydanne/buildx.git
synced 2025-07-09 21:17:09 +08:00
Update buildkit w/ customizable output colors, etc.
Signed-off-by: Sean P. Kane <spkane00@gmail.com>
This commit is contained in:
8
vendor/github.com/moby/buildkit/util/progress/progressui/display.go
generated
vendored
8
vendor/github.com/moby/buildkit/util/progress/progressui/display.go
generated
vendored
@ -108,6 +108,7 @@ type job struct {
|
||||
name string
|
||||
status string
|
||||
hasError bool
|
||||
hasWarning bool // This is currently unused, but it's here for future use.
|
||||
isCanceled bool
|
||||
vertex *vertex
|
||||
showTerm bool
|
||||
@ -829,8 +830,13 @@ func (disp *display) print(d displayInfo, width, height int, all bool) {
|
||||
color = colorCancel
|
||||
} else if j.hasError {
|
||||
color = colorError
|
||||
} else if j.hasWarning {
|
||||
// This is currently unused, but it's here for future use.
|
||||
color = colorWarning
|
||||
}
|
||||
if color != nil {
|
||||
out = aec.Apply(out, color)
|
||||
}
|
||||
out = aec.Apply(out, color)
|
||||
}
|
||||
fmt.Fprint(disp.c, out)
|
||||
lineCount++
|
||||
|
Reference in New Issue
Block a user