From f8e8f17f4ed2bb22619c9ad84d5a636e8f36ecc9 Mon Sep 17 00:00:00 2001 From: Tonis Tiigi Date: Mon, 6 May 2019 16:39:09 -0700 Subject: [PATCH] progress: add env config Signed-off-by: Tonis Tiigi --- util/progress/printer.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/util/progress/printer.go b/util/progress/printer.go index 7d415a60..e2828f3d 100644 --- a/util/progress/printer.go +++ b/util/progress/printer.go @@ -39,6 +39,10 @@ func NewPrinter(ctx context.Context, out *os.File, mode string) Writer { done: doneCh, } + if v := os.Getenv("BUILDKIT_PROGRESS"); v != "" && mode == "auto" { + mode = v + } + go func() { var c console.Console if cons, err := console.ConsoleFromFile(out); err == nil && (mode == "auto" || mode == "tty") {