Skip to content

Commit fe04691

Browse files
ndeloofglours
authored andcommitted
buildkit require os.Stdout to access the raw terminal
Signed-off-by: Nicolas De Loof <[email protected]>
1 parent adbd61e commit fe04691

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

pkg/compose/build_bake.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -133,11 +133,10 @@ func (s *composeService) doBuildBake(ctx context.Context, project *types.Project
133133
displayMode := progressui.DisplayMode(options.Progress)
134134
out := options.Out
135135
if out == nil {
136-
cout := s.dockerCli.Out()
137-
if !cout.IsTerminal() {
136+
if !s.dockerCli.Out().IsTerminal() {
138137
displayMode = progressui.PlainMode
139138
}
140-
out = cout
139+
out = os.Stdout // should be s.dockerCli.Out(), but NewDisplay require access to the underlying *File
141140
}
142141
display, err := progressui.NewDisplay(out, displayMode)
143142
if err != nil {

0 commit comments

Comments
 (0)