Skip to content

Commit eec2bb7

Browse files
ndeloofglours
authored andcommitted
only force plain mode build if progress is set to auto
Signed-off-by: Nicolas De Loof <[email protected]>
1 parent 2c15aef commit eec2bb7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/compose/build_bake.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ func (s *composeService) doBuildBake(ctx context.Context, project *types.Project
138138
displayMode := progressui.DisplayMode(options.Progress)
139139
out := options.Out
140140
if out == nil {
141-
if !s.dockerCli.Out().IsTerminal() {
141+
if displayMode == progress.ModeAuto && !s.dockerCli.Out().IsTerminal() {
142142
displayMode = progressui.PlainMode
143143
}
144144
out = os.Stdout // should be s.dockerCli.Out(), but NewDisplay require access to the underlying *File

0 commit comments

Comments
 (0)