Merge pull request #2957 from ndeloof/prompt-rawjson

don't warn user about missing --allows when running with progress=rawjson
This commit is contained in:
Tõnis Tiigi 2025-02-07 16:34:10 -08:00 committed by GitHub
commit d557da1935
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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