We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a2f9383 + 51aca40 commit c1a9bdbCopy full SHA for c1a9bdb
solver/errdefs/context.go
@@ -14,7 +14,7 @@ func IsCanceled(ctx context.Context, err error) bool {
14
return true
15
}
16
// grpc does not set cancel correctly when stream gets cancelled and then Recv is called
17
- if err != nil && context.Cause(ctx) == context.Canceled {
+ if err != nil && errors.Is(context.Cause(ctx), context.Canceled) {
18
// when this error comes from containerd it is not typed at all, just concatenated string
19
if strings.Contains(err.Error(), "EOF") {
20
0 commit comments