Pass 'plain' instead of 'json' to build backend

Signed-off-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
Felix Fontein 2024-02-08 16:31:29 +01:00 committed by Nicolas De loof
parent 06545d0668
commit 5a6e1a7e2e
1 changed files with 6 additions and 1 deletions

View File

@ -67,10 +67,15 @@ func (opts buildOptions) toAPIBuildOptions(services []string) (api.BuildOptions,
builderName = os.Getenv("BUILDX_BUILDER")
}
// The build backends do not have a "json" progress; use "plain" instead
uiMode := ui.Mode
if uiMode == ui.ModeJSON {
uiMode = ui.ModePlain
}
return api.BuildOptions{
Pull: opts.pull,
Push: opts.push,
Progress: ui.Mode,
Progress: uiMode,
Args: types.NewMappingWithEquals(opts.args),
NoCache: opts.noCache,
Quiet: opts.quiet,