浏览代码

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
 			})