mirror of
https://github.com/docker/compose.git
synced 2025-07-26 23:24:05 +02:00
Pass 'plain' instead of 'json' to build backend
Signed-off-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
parent
06545d0668
commit
5a6e1a7e2e
@ -67,10 +67,15 @@ func (opts buildOptions) toAPIBuildOptions(services []string) (api.BuildOptions,
|
|||||||
builderName = os.Getenv("BUILDX_BUILDER")
|
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{
|
return api.BuildOptions{
|
||||||
Pull: opts.pull,
|
Pull: opts.pull,
|
||||||
Push: opts.push,
|
Push: opts.push,
|
||||||
Progress: ui.Mode,
|
Progress: uiMode,
|
||||||
Args: types.NewMappingWithEquals(opts.args),
|
Args: types.NewMappingWithEquals(opts.args),
|
||||||
NoCache: opts.noCache,
|
NoCache: opts.noCache,
|
||||||
Quiet: opts.quiet,
|
Quiet: opts.quiet,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user