summaryrefslogtreecommitdiffhomepage
path: root/pkg/shim/BUILD
diff options
context:
space:
mode:
authorFabricio Voznika <fvoznika@google.com>2021-06-29 10:53:10 -0700
committergVisor bot <gvisor-bot@google.com>2021-06-29 10:56:17 -0700
commit5f2b3728fc1d71d32912c57d948ba4b15c886f2a (patch)
tree1697b8bf8238bf3dc3b795b9eec01d9a777a882e /pkg/shim/BUILD
parent5b2afd24a7ed6d626ede2d06d04378f95c3b62f8 (diff)
Redirect all calls from `errdefs.ToGRPC` to `utils.ErrToGRPC`
This is to ensure that Go 1.13 error wrapping is correctly translated to gRPC errors before returning from the shim. Updates #6225 PiperOrigin-RevId: 382120441
Diffstat (limited to 'pkg/shim/BUILD')
-rw-r--r--pkg/shim/BUILD9
1 files changed, 1 insertions, 8 deletions
diff --git a/pkg/shim/BUILD b/pkg/shim/BUILD
index b115556f5..367765209 100644
--- a/pkg/shim/BUILD
+++ b/pkg/shim/BUILD
@@ -8,7 +8,6 @@ go_library(
"api.go",
"debug.go",
"epoll.go",
- "errors.go",
"options.go",
"service.go",
"service_linux.go",
@@ -45,8 +44,6 @@ go_library(
"@com_github_gogo_protobuf//types:go_default_library",
"@com_github_opencontainers_runtime_spec//specs-go:go_default_library",
"@com_github_sirupsen_logrus//:go_default_library",
- "@org_golang_google_grpc//codes:go_default_library",
- "@org_golang_google_grpc//status:go_default_library",
"@org_golang_x_sys//unix:go_default_library",
],
)
@@ -54,14 +51,10 @@ go_library(
go_test(
name = "shim_test",
size = "small",
- srcs = [
- "errors_test.go",
- "service_test.go",
- ],
+ srcs = ["service_test.go"],
library = ":shim",
deps = [
"//pkg/shim/utils",
- "@com_github_containerd_containerd//errdefs:go_default_library",
"@com_github_opencontainers_runtime_spec//specs-go:go_default_library",
],
)