mirror of
https://github.com/moby/buildkit.git
synced 2026-11-06 05:16:45 +00:00
Transfer ownership of the remaining progress writers under the lock when the shared call completes. This prevents cancellation from mutating the slice during cleanup or closing the same writer concurrently, avoiding a nil-pointer panic that terminates the daemon. Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>