BUILD 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. package(default_visibility = ["//visibility:public"])
  2. load(
  3. "@io_bazel_rules_go//go:def.bzl",
  4. "go_test",
  5. "go_library",
  6. )
  7. go_test(
  8. name = "go_default_test",
  9. srcs = [
  10. "api_test.go",
  11. "dao_test.go",
  12. "databus_test.go",
  13. "memcache_test.go",
  14. "redis_test.go",
  15. ],
  16. embed = [":go_default_library"],
  17. rundir = ".",
  18. tags = ["automanaged"],
  19. deps = [
  20. "//app/interface/main/app-card/model:go_default_library",
  21. "//app/interface/main/app-card/model/card/ai:go_default_library",
  22. "//app/interface/main/app-feed/conf:go_default_library",
  23. "//vendor/github.com/smartystreets/goconvey/convey:go_default_library",
  24. ],
  25. )
  26. go_library(
  27. name = "go_default_library",
  28. srcs = [
  29. "api.go",
  30. "dao.go",
  31. "databus.go",
  32. "memcache.go",
  33. "redis.go",
  34. ],
  35. importpath = "go-common/app/interface/main/app-feed/dao/recommend",
  36. tags = ["automanaged"],
  37. deps = [
  38. "//app/interface/main/app-card/model:go_default_library",
  39. "//app/interface/main/app-card/model/card/ai:go_default_library",
  40. "//app/interface/main/app-feed/conf:go_default_library",
  41. "//library/cache/memcache:go_default_library",
  42. "//library/cache/redis:go_default_library",
  43. "//library/ecode:go_default_library",
  44. "//library/log:go_default_library",
  45. "//library/net/http/blademaster:go_default_library",
  46. "//library/net/metadata:go_default_library",
  47. "//library/queue/databus:go_default_library",
  48. "//vendor/github.com/pkg/errors:go_default_library",
  49. ],
  50. )
  51. filegroup(
  52. name = "package-srcs",
  53. srcs = glob(["**"]),
  54. tags = ["automanaged"],
  55. visibility = ["//visibility:private"],
  56. )
  57. filegroup(
  58. name = "all-srcs",
  59. srcs = [":package-srcs"],
  60. tags = ["automanaged"],
  61. visibility = ["//visibility:public"],
  62. )