Skip to content

Commit 8e5b25c

Browse files
ndeloofglours
authored andcommitted
Restored support for BUILDKIT_PROGRESS.
Signed-off-by: Nicolas De Loof <[email protected]>
1 parent d4c1987 commit 8e5b25c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/compose/build_bake.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,8 @@ func (s *composeService) doBuildBake(ctx context.Context, project *types.Project
119119
eg := errgroup.Group{}
120120
ch := make(chan *client.SolveStatus)
121121
displayMode := progressui.DisplayMode(options.Progress)
122-
if displayMode == progressui.AutoMode {
123-
options.Progress = os.Getenv("BUILDKIT_PROGRESS")
122+
if p, ok := os.LookupEnv("BUILDKIT_PROGRESS"); ok && displayMode == progressui.AutoMode {
123+
displayMode = progressui.DisplayMode(p)
124124
}
125125
out := options.Out
126126
if out == nil {

0 commit comments

Comments
 (0)