Skip to content

progress: don't panic on --load writes after printer close - #4056

Open
locker95 wants to merge 1 commit into
docker:masterfrom
locker95:fix/load-progress-printer-close
Open

progress: don't panic on --load writes after printer close#4056
locker95 wants to merge 1 commit into
docker:masterfrom
locker95:fix/load-progress-printer-close

Conversation

@locker95

@locker95 locker95 commented Sep 4, 2026

Copy link
Copy Markdown

--load streams "importing to docker" into the build printer from a goroutine. if that load is still going when printer.Wait() closes the status channel, Write panics (send on closed channel).

wait for the loader closer during solve cleanup, and drop late Writes instead of panicking.

Fixes #3948

`--load` streams import progress into the build printer from a
goroutine. If that load is still going when printer.Wait() closes
the status channel, Write panics with send on closed channel.

Wait for the loader closer during solve cleanup, and drop late
Write calls instead of panicking.

Fixes docker#3948

Signed-off-by: Dean Chen <862469039@qq.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

panic: send on closed channel in Printer.Write via LoadImage (--load) progress after solve completes

1 participant