Browse Source

check progress default value instead of empty string to use BUILDKIT_PROGRESS env variable value

Signed-off-by: Guillaume Lours <[email protected]>
Guillaume Lours 5 months ago
parent
commit
29630f184e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      pkg/compose/build.go

+ 1 - 1
pkg/compose/build.go

@@ -172,7 +172,7 @@ func (s *composeService) build(ctx context.Context, project *types.Project, opti
 		if options.Quiet {
 			options.Progress = progress.ModeQuiet
 		}
-		if options.Progress == "" {
+		if options.Progress == progress.ModeAuto {
 			options.Progress = os.Getenv("BUILDKIT_PROGRESS")
 		}
 		w, err = xprogress.NewPrinter(progressCtx, os.Stdout, progressui.DisplayMode(options.Progress),