Skip to content

Commit 0ccdb7e

Browse files
committed
don't warn user about missing --allows when running with progress=rawjson
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
1 parent cacb4fb commit 0ccdb7e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

commands/bake.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -271,8 +271,10 @@ func runBake(ctx context.Context, dockerCli command.Cli, targets []string, in ba
271271
if err != nil {
272272
return err
273273
}
274-
if err := exp.Prompt(ctx, url != "", &syncWriter{w: dockerCli.Err(), wait: printer.Wait}); err != nil {
275-
return err
274+
if progressMode != progressui.RawJSONMode {
275+
if err := exp.Prompt(ctx, url != "", &syncWriter{w: dockerCli.Err(), wait: printer.Wait}); err != nil {
276+
return err
277+
}
276278
}
277279
if printer.IsDone() {
278280
// init new printer as old one was stopped to show the prompt

0 commit comments

Comments
 (0)