BUILD.bazel.in 1.1 KB

12345678910111213141516171819202122232425262728293031
  1. load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
  2. go_library(
  3. name = "go_default_library",
  4. srcs = ["serverreflection.go"],
  5. importpath = "google.golang.org/grpc/reflection",
  6. visibility = ["//visibility:public"],
  7. deps = [
  8. "//:go_default_library",
  9. "//codes:go_default_library",
  10. "//reflection/grpc_reflection_v1alpha:go_default_library",
  11. "//status:go_default_library",
  12. "@com_github_golang_protobuf//proto:go_default_library",
  13. "@io_bazel_rules_go//proto/wkt:descriptor_go_proto",
  14. ],
  15. )
  16. go_test(
  17. name = "go_default_test",
  18. srcs = ["serverreflection_test.go"],
  19. embed = [":go_default_library"],
  20. deps = [
  21. "//:go_default_library",
  22. "//reflection/grpc_reflection_v1alpha:go_default_library",
  23. "//reflection/grpc_testing:go_default_library",
  24. "//reflection/grpc_testingv3:go_default_library",
  25. "@com_github_golang_protobuf//proto:go_default_library",
  26. "@io_bazel_rules_go//proto/wkt:descriptor_go_proto",
  27. "@org_golang_x_net//context:go_default_library",
  28. ],
  29. )