BUILD.bazel.in 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
  2. go_library(
  3. name = "go_default_library",
  4. srcs = [
  5. "go16.go",
  6. "go17.go",
  7. "status.go",
  8. ],
  9. importpath = "google.golang.org/grpc/status",
  10. visibility = ["//visibility:public"],
  11. deps = [
  12. "//codes:go_default_library",
  13. "@com_github_golang_protobuf//proto:go_default_library",
  14. "@com_github_golang_protobuf//ptypes:go_default_library",
  15. "@org_golang_google_genproto//googleapis/rpc/status:go_default_library",
  16. "@org_golang_x_net//context:go_default_library",
  17. ],
  18. )
  19. go_test(
  20. name = "go_default_test",
  21. srcs = [
  22. "go17_test.go",
  23. "status_test.go",
  24. ],
  25. embed = [":go_default_library"],
  26. deps = [
  27. "//codes:go_default_library",
  28. "@com_github_golang_protobuf//proto:go_default_library",
  29. "@com_github_golang_protobuf//ptypes:go_default_library",
  30. "@io_bazel_rules_go//proto/wkt:any_go_proto",
  31. "@io_bazel_rules_go//proto/wkt:duration_go_proto",
  32. "@org_golang_google_genproto//googleapis/rpc/code:go_default_library",
  33. "@org_golang_google_genproto//googleapis/rpc/errdetails:go_default_library",
  34. "@org_golang_google_genproto//googleapis/rpc/status:go_default_library",
  35. "@org_golang_x_net//context:go_default_library",
  36. ],
  37. )