BUILD 1.1 KB

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