Merge pull request #1794 from jedevc/fix-printer-start-race

pull/1803/head v0.11.0-rc1
Justin Chadwell 2 years ago committed by GitHub
commit 060ac842bb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -120,9 +120,8 @@ func NewPrinter(ctx context.Context, w io.Writer, out console.File, mode string,
pw.logSourceMap = map[digest.Digest]interface{}{}
pw.logMu.Unlock()
close(pw.ready)
resumeLogs := logutil.Pause(logrus.StandardLogger())
close(pw.ready)
// not using shared context to not disrupt display but let is finish reporting errors
pw.warnings, pw.err = progressui.DisplaySolveStatus(ctx, c, w, pw.status, opt.displayOpts...)
resumeLogs()

Loading…
Cancel
Save