Skip to content

Commit

Permalink
Pass 'plain' instead of 'json' to build backend
Browse files Browse the repository at this point in the history
Signed-off-by: Felix Fontein <[email protected]>
  • Loading branch information
felixfontein committed Feb 23, 2024
1 parent 63009f0 commit e979ad7
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion cmd/compose/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit e979ad7

Please sign in to comment.