Skip to content

Commit 9aa8d42

Browse files
committed
Pass 'plain' instead of 'json' to build backend
Signed-off-by: Felix Fontein <[email protected]>
1 parent dea886c commit 9aa8d42

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Diff for: cmd/compose/build.go

+6-1
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,15 @@ func (opts buildOptions) toAPIBuildOptions(services []string) (api.BuildOptions,
6767
builderName = os.Getenv("BUILDX_BUILDER")
6868
}
6969

70+
// The build backends do not have a "json" progress; use "plain" instead
71+
uiMode := ui.Mode
72+
if uiMode == ui.ModeJSON {
73+
uiMode = ui.ModePlain
74+
}
7075
return api.BuildOptions{
7176
Pull: opts.pull,
7277
Push: opts.push,
73-
Progress: ui.Mode,
78+
Progress: uiMode,
7479
Args: types.NewMappingWithEquals(opts.args),
7580
NoCache: opts.noCache,
7681
Quiet: opts.quiet,

0 commit comments

Comments
 (0)