full diff: https://github.com/moby/buildkit/compare/v0.8.0-rc2...v0.8.0 note that this is currently a few commits "behind" the version used in docker, but changes since v0.8.0 do not affect the code that's vendored in the CLI, so prefering to use a tagged version. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
14 lines
246 B
Go
14 lines
246 B
Go
package errdefs
|
|
|
|
import (
|
|
"context"
|
|
"errors"
|
|
|
|
"github.com/moby/buildkit/util/grpcerrors"
|
|
"google.golang.org/grpc/codes"
|
|
)
|
|
|
|
func IsCanceled(err error) bool {
|
|
return errors.Is(err, context.Canceled) || grpcerrors.Code(err) == codes.Canceled
|
|
}
|