BUILD 1.0 KB

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