BUILD 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. load(
  2. "@io_bazel_rules_go//proto:def.bzl",
  3. "go_proto_library",
  4. )
  5. package(default_visibility = ["//visibility:public"])
  6. load(
  7. "@io_bazel_rules_go//go:def.bzl",
  8. "go_library",
  9. )
  10. proto_library(
  11. name = "v1_proto",
  12. srcs = ["api.proto"],
  13. tags = ["automanaged"],
  14. )
  15. go_proto_library(
  16. name = "v1_go_proto",
  17. compilers = ["@io_bazel_rules_go//proto:go_grpc"],
  18. importpath = "go-common/app/admin/ep/saga/api/grpc/v1",
  19. proto = ":v1_proto",
  20. tags = ["automanaged"],
  21. )
  22. go_library(
  23. name = "go_default_library",
  24. srcs = [],
  25. embed = [":v1_go_proto"],
  26. importpath = "go-common/app/admin/ep/saga/api/grpc/v1",
  27. tags = ["automanaged"],
  28. visibility = ["//visibility:public"],
  29. deps = [
  30. "@com_github_gogo_protobuf//proto:go_default_library",
  31. "@org_golang_google_grpc//:go_default_library",
  32. "@org_golang_x_net//context:go_default_library",
  33. ],
  34. )
  35. filegroup(
  36. name = "package-srcs",
  37. srcs = glob(["**"]),
  38. tags = ["automanaged"],
  39. visibility = ["//visibility:private"],
  40. )
  41. filegroup(
  42. name = "all-srcs",
  43. srcs = [":package-srcs"],
  44. tags = ["automanaged"],
  45. visibility = ["//visibility:public"],
  46. )