BUILD 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. package(default_visibility = ["//visibility:public"])
  2. load(
  3. "@io_bazel_rules_go//go:def.bzl",
  4. "go_library",
  5. "go_test",
  6. )
  7. go_library(
  8. name = "go_default_library",
  9. srcs = ["status.go"],
  10. importpath = "go-common/library/net/rpc/warden/status",
  11. tags = ["automanaged"],
  12. visibility = ["//visibility:public"],
  13. deps = [
  14. "//library/ecode:go_default_library",
  15. "//library/ecode/pb:go_default_library",
  16. "//vendor/github.com/pkg/errors:go_default_library",
  17. "@com_github_golang_protobuf//proto:go_default_library",
  18. "@com_github_golang_protobuf//ptypes:go_default_library_gen",
  19. "@org_golang_google_grpc//codes:go_default_library",
  20. "@org_golang_google_grpc//status:go_default_library",
  21. ],
  22. )
  23. filegroup(
  24. name = "package-srcs",
  25. srcs = glob(["**"]),
  26. tags = ["automanaged"],
  27. visibility = ["//visibility:private"],
  28. )
  29. filegroup(
  30. name = "all-srcs",
  31. srcs = [":package-srcs"],
  32. tags = ["automanaged"],
  33. visibility = ["//visibility:public"],
  34. )
  35. go_test(
  36. name = "go_default_test",
  37. srcs = ["status_test.go"],
  38. embed = [":go_default_library"],
  39. tags = ["manual"],
  40. deps = [
  41. "//library/ecode:go_default_library",
  42. "//library/ecode/pb:go_default_library",
  43. "//vendor/github.com/stretchr/testify/assert:go_default_library",
  44. "@com_github_golang_protobuf//ptypes:go_default_library_gen",
  45. "@io_bazel_rules_go//proto/wkt:timestamp_go_proto",
  46. "@org_golang_google_grpc//codes:go_default_library",
  47. "@org_golang_google_grpc//status:go_default_library",
  48. ],
  49. )