BUILD 1.4 KB

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