vendor: update buildkit to 862b22d7

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
This commit is contained in:
Tonis Tiigi
2022-12-13 12:00:06 -08:00
parent 0e293a4ec9
commit 12ec931237
18 changed files with 1566 additions and 366 deletions

View File

@ -35,8 +35,13 @@ func (mr *MultiReader) Reader(ctx context.Context) Reader {
isBehind := len(mr.sent) > 0
if !isBehind {
mr.writers[w] = closeWriter
select {
case <-mr.done:
isBehind = true
default:
if !isBehind {
mr.writers[w] = closeWriter
}
}
go func() {
@ -74,9 +79,6 @@ func (mr *MultiReader) Reader(ctx context.Context) Reader {
case <-ctx.Done():
close()
return
case <-mr.done:
close()
return
default:
}
}