Skip to content

Commit a96c305

Browse files
emersionndeloof
authored andcommitted
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 <contact@emersion.fr>
1 parent 2d7cd2a commit a96c305

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pkg/compose/build_bake.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ func (s *composeService) doBuildBake(ctx context.Context, project *types.Project
220220
}
221221

222222
if options.Print {
223-
_, err = fmt.Fprintln(s.stdinfo(), string(b))
223+
_, err = fmt.Fprintln(s.stdout(), string(b))
224224
return nil, err
225225
}
226226
logrus.Debugf("bake build config:\n%s", string(b))

0 commit comments

Comments
 (0)