Browse Source

build: write --print output to stdout

stdinfo should only be used for status/progress messages: it
defaults to stderr and makes piping the output trickier. bakex
always writes `docker buildx bake --print` always uses stdout.

Signed-off-by: Simon Ser <[email protected]>
Simon Ser 7 months ago
parent
commit
a96c305b25
1 changed files with 1 additions and 1 deletions
  1. 1 1
      pkg/compose/build_bake.go

+ 1 - 1
pkg/compose/build_bake.go

@@ -220,7 +220,7 @@ func (s *composeService) doBuildBake(ctx context.Context, project *types.Project
 	}
 
 	if options.Print {
-		_, err = fmt.Fprintln(s.stdinfo(), string(b))
+		_, err = fmt.Fprintln(s.stdout(), string(b))
 		return nil, err
 	}
 	logrus.Debugf("bake build config:\n%s", string(b))