Skip to content

Commit

Permalink
Merge pull request #69 from tonistiigi/progress-env
Browse files Browse the repository at this point in the history
progress: add env config
  • Loading branch information
tonistiigi authored May 7, 2019
2 parents b3fe1a3 + f8e8f17 commit dcd8ca9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions util/progress/printer.go
Original file line number Diff line number Diff line change
Expand Up @@ -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") {
Expand Down

0 comments on commit dcd8ca9

Please sign in to comment.