Skip to content

Commit d956ff1

Browse files
gloursndeloof
authored andcommitted
don't display bake suggestion when using --progress with quiet or json option
Signed-off-by: Guillaume Lours <705411+glours@users.noreply.github.com>
1 parent 5f7c9a2 commit d956ff1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/compose/build.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ func (s *composeService) build(ctx context.Context, project *types.Project, opti
139139
w *xprogress.Printer
140140
)
141141
if buildkitEnabled {
142-
if hints.Enabled() {
142+
if hints.Enabled() && progress.Mode != progress.ModeQuiet && progress.Mode != progress.ModeJSON {
143143
suggest.Do(func() {
144144
fmt.Fprintln(s.dockerCli.Out(), bakeSuggest) //nolint:errcheck
145145
})

0 commit comments

Comments
 (0)