BUILD 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. load(
  2. "@io_bazel_rules_go//go:def.bzl",
  3. "go_binary",
  4. "go_library",
  5. )
  6. load(
  7. "@io_bazel_rules_go//go:def.bzl",
  8. "go_binary",
  9. "go_library",
  10. )
  11. package(default_visibility = ["//visibility:public"])
  12. load(
  13. "@io_bazel_rules_go//go:def.bzl",
  14. "go_binary",
  15. "go_library",
  16. )
  17. go_binary(
  18. name = "cmd",
  19. embed = [":go_default_library"],
  20. tags = ["automanaged"],
  21. )
  22. go_library(
  23. name = "go_default_library",
  24. srcs = ["main.go"],
  25. data = ["member-admin-test.toml"],
  26. importpath = "go-common/app/admin/main/member/cmd",
  27. tags = ["automanaged"],
  28. visibility = ["//visibility:public"],
  29. deps = [
  30. "//app/admin/main/member/conf:go_default_library",
  31. "//app/admin/main/member/http:go_default_library",
  32. "//library/ecode/tip:go_default_library",
  33. "//library/log:go_default_library",
  34. "//library/net/trace:go_default_library",
  35. "//library/queue/databus/report:go_default_library",
  36. ],
  37. )
  38. filegroup(
  39. name = "package-srcs",
  40. srcs = glob(["**"]),
  41. tags = ["automanaged"],
  42. visibility = ["//visibility:private"],
  43. )
  44. filegroup(
  45. name = "all-srcs",
  46. srcs = [":package-srcs"],
  47. tags = ["automanaged"],
  48. visibility = ["//visibility:public"],
  49. )