Skip to content

Commit

Permalink
Merge pull request #2957 from ndeloof/prompt-rawjson
Browse files Browse the repository at this point in the history
don't warn user about missing --allows when running with progress=rawjson
  • Loading branch information
tonistiigi authored Feb 8, 2025
2 parents 4b90b84 + 0ccdb7e commit d557da1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions commands/bake.go
Original file line number Diff line number Diff line change
Expand Up @@ -271,8 +271,10 @@ func runBake(ctx context.Context, dockerCli command.Cli, targets []string, in ba
if err != nil {
return err
}
if err := exp.Prompt(ctx, url != "", &syncWriter{w: dockerCli.Err(), wait: printer.Wait}); err != nil {
return err
if progressMode != progressui.RawJSONMode {
if err := exp.Prompt(ctx, url != "", &syncWriter{w: dockerCli.Err(), wait: printer.Wait}); err != nil {
return err
}
}
if printer.IsDone() {
// init new printer as old one was stopped to show the prompt
Expand Down

0 comments on commit d557da1

Please sign in to comment.