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>
This commit is contained in:
parent
2d7cd2a999
commit
a96c305b25
@ -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))
|
||||
|
Loading…
x
Reference in New Issue
Block a user