deps: update buildkit, vendor changes

Signed-off-by: Laura Brehm <laurabrehm@hey.com>
This commit is contained in:
Laura Brehm
2023-12-19 12:36:24 +00:00
parent 8484fcdd57
commit 0f45b629ad
157 changed files with 17189 additions and 1232 deletions

View File

@ -39,7 +39,7 @@ func Copy(ctx context.Context, conn io.ReadWriteCloser, stream Stream, closeStre
select {
case <-ctx.Done():
conn.Close()
return ctx.Err()
return context.Cause(ctx)
default:
}
if _, err := conn.Write(p.Data); err != nil {
@ -65,7 +65,7 @@ func Copy(ctx context.Context, conn io.ReadWriteCloser, stream Stream, closeStre
}
select {
case <-ctx.Done():
return ctx.Err()
return context.Cause(ctx)
default:
}
p := &BytesMessage{Data: buf[:n]}

View File

@ -26,7 +26,7 @@ func (s *server) run(ctx context.Context, l net.Listener, id string) error {
eg.Go(func() error {
<-ctx.Done()
return ctx.Err()
return context.Cause(ctx)
})
eg.Go(func() error {