vendor: update buildkit to v0.11.0-rc4

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
Signed-off-by: Justin Chadwell <me@jedevc.com>
This commit is contained in:
Justin Chadwell
2023-01-06 11:22:18 +00:00
committed by Tonis Tiigi
parent a8be6b576b
commit 7394853ddf
30 changed files with 2648 additions and 542 deletions

View File

@ -14,16 +14,19 @@ type Stream interface {
}
func Copy(ctx context.Context, conn io.ReadWriteCloser, stream Stream, closeStream func() error) error {
defer conn.Close()
g, ctx := errgroup.WithContext(ctx)
g.Go(func() (retErr error) {
p := &BytesMessage{}
for {
if err := stream.RecvMsg(p); err != nil {
conn.Close()
if err == io.EOF {
// indicates client performed CloseSend, but they may still be
// reading data, so don't close conn yet
return nil
}
conn.Close()
return errors.WithStack(err)
}
select {