Преглед изворни кода

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

Signed-off-by: Guillaume Lours <[email protected]>
Guillaume Lours пре 11 месеци
родитељ
комит
d956ff13da
1 измењених фајлова са 1 додато и 1 уклоњено
  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
 			})