mirror of
https://gitea.com/Lydanne/buildx.git
synced 2025-07-09 21:17:09 +08:00
vendor: update buildkit to v0.16.0-rc1
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
This commit is contained in:
3
vendor/github.com/moby/buildkit/util/grpcerrors/grpcerrors.go
generated
vendored
3
vendor/github.com/moby/buildkit/util/grpcerrors/grpcerrors.go
generated
vendored
@ -96,6 +96,9 @@ func withDetails(ctx context.Context, s *status.Status, details ...proto.Message
|
||||
|
||||
func Code(err error) codes.Code {
|
||||
if errdefs.IsInternal(err) {
|
||||
if errdefs.IsResourceExhausted(err) {
|
||||
return codes.ResourceExhausted
|
||||
}
|
||||
return codes.Internal
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user