BUILD 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. package(default_visibility = ["//visibility:public"])
  2. load(
  3. "@io_bazel_rules_go//go:def.bzl",
  4. "go_library",
  5. "go_test",
  6. )
  7. go_library(
  8. name = "go_default_library",
  9. srcs = [
  10. "dao.cache.go",
  11. "dao.go",
  12. "mc.go",
  13. "passport.go",
  14. "raw.go",
  15. "realname.go",
  16. "search.go",
  17. "vip.go",
  18. ],
  19. importpath = "go-common/app/service/main/account/dao",
  20. tags = ["automanaged"],
  21. deps = [
  22. "//app/service/main/account/api:go_default_library",
  23. "//app/service/main/account/conf:go_default_library",
  24. "//app/service/main/account/model:go_default_library",
  25. "//app/service/main/member/api/gorpc:go_default_library",
  26. "//app/service/main/member/model:go_default_library",
  27. "//app/service/main/member/model/block:go_default_library",
  28. "//app/service/main/usersuit/model:go_default_library",
  29. "//app/service/main/usersuit/rpc/client:go_default_library",
  30. "//library/cache/memcache:go_default_library",
  31. "//library/database/elastic:go_default_library",
  32. "//library/ecode:go_default_library",
  33. "//library/log:go_default_library",
  34. "//library/net/http/blademaster:go_default_library",
  35. "//library/net/metadata:go_default_library",
  36. "//library/stat/prom:go_default_library",
  37. "//library/sync/errgroup:go_default_library",
  38. "//library/sync/pipeline/fanout:go_default_library",
  39. "//library/xstr:go_default_library",
  40. "//vendor/github.com/pkg/errors:go_default_library",
  41. ],
  42. )
  43. filegroup(
  44. name = "package-srcs",
  45. srcs = glob(["**"]),
  46. tags = ["automanaged"],
  47. visibility = ["//visibility:private"],
  48. )
  49. filegroup(
  50. name = "all-srcs",
  51. srcs = [":package-srcs"],
  52. tags = ["automanaged"],
  53. visibility = ["//visibility:public"],
  54. )
  55. go_test(
  56. name = "go_default_test",
  57. srcs = [
  58. "dao.cache_test.go",
  59. "dao_test.go",
  60. "mc_test.go",
  61. "passport_test.go",
  62. "raw_test.go",
  63. "search_test.go",
  64. "vip_test.go",
  65. ],
  66. embed = [":go_default_library"],
  67. rundir = ".",
  68. tags = ["automanaged"],
  69. deps = [
  70. "//app/service/main/account/conf:go_default_library",
  71. "//app/service/main/account/model:go_default_library",
  72. "//app/service/main/member/model:go_default_library",
  73. "//app/service/main/member/model/block:go_default_library",
  74. "//library/cache/memcache:go_default_library",
  75. "//library/ecode:go_default_library",
  76. "//vendor/github.com/smartystreets/goconvey/convey:go_default_library",
  77. ],
  78. )