github.com/SagerNet/gvisor@v0.0.0-20210707092255-7731c139d75c/pkg/shim/utils/BUILD (about) 1 load("//tools:defs.bzl", "go_library", "go_test") 2 3 package(licenses = ["notice"]) 4 5 go_library( 6 name = "utils", 7 srcs = [ 8 "annotations.go", 9 "errors.go", 10 "utils.go", 11 "volumes.go", 12 ], 13 visibility = [ 14 "//pkg/shim:__subpackages__", 15 "//shim:__subpackages__", 16 ], 17 deps = [ 18 "@com_github_containerd_containerd//errdefs:go_default_library", 19 "@com_github_opencontainers_runtime_spec//specs-go:go_default_library", 20 "@org_golang_google_grpc//codes:go_default_library", 21 "@org_golang_google_grpc//status:go_default_library", 22 ], 23 ) 24 25 go_test( 26 name = "utils_test", 27 size = "small", 28 srcs = [ 29 "errors_test.go", 30 "volumes_test.go", 31 ], 32 library = ":utils", 33 deps = [ 34 "@com_github_containerd_containerd//errdefs:go_default_library", 35 "@com_github_opencontainers_runtime_spec//specs-go:go_default_library", 36 ], 37 )