Browse Source

don't display bake suggestion when using --progress with quiet or json option

Signed-off-by: Guillaume Lours <[email protected]>
Guillaume Lours 9 months ago
parent
commit
d956ff13da
1 changed files with 1 additions and 1 deletions
  1. 1 1
      pkg/compose/build.go

+ 1 - 1
pkg/compose/build.go

@@ -139,7 +139,7 @@ func (s *composeService) build(ctx context.Context, project *types.Project, opti
 		w     *xprogress.Printer
 	)
 	if buildkitEnabled {
-		if hints.Enabled() {
+		if hints.Enabled() && progress.Mode != progress.ModeQuiet && progress.Mode != progress.ModeJSON {
 			suggest.Do(func() {
 				fmt.Fprintln(s.dockerCli.Out(), bakeSuggest) //nolint:errcheck
 			})