BUILD 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  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. "retry_test.go",
  11. "search_test.go",
  12. "service_test.go",
  13. "sort_test.go",
  14. "stat_test.go",
  15. ],
  16. embed = [":go_default_library"],
  17. rundir = ".",
  18. tags = ["automanaged"],
  19. deps = [
  20. "//app/interface/openplatform/article/model:go_default_library",
  21. "//app/job/openplatform/article/conf:go_default_library",
  22. "//app/job/openplatform/article/dao:go_default_library",
  23. "//library/cache/redis:go_default_library",
  24. "//library/queue/databus:go_default_library",
  25. "//vendor/github.com/smartystreets/goconvey/convey:go_default_library",
  26. ],
  27. )
  28. go_library(
  29. name = "go_default_library",
  30. srcs = [
  31. "article.go",
  32. "author.go",
  33. "cron.go",
  34. "infoc.go",
  35. "read.go",
  36. "recommend.go",
  37. "search.go",
  38. "service.go",
  39. "setting.go",
  40. "sitemap.go",
  41. "sort.go",
  42. "stat.go",
  43. "tag.go",
  44. ],
  45. importpath = "go-common/app/job/openplatform/article/service",
  46. tags = ["automanaged"],
  47. deps = [
  48. "//app/interface/main/tag/model:go_default_library",
  49. "//app/interface/main/tag/rpc/client:go_default_library",
  50. "//app/interface/openplatform/article/model:go_default_library",
  51. "//app/interface/openplatform/article/rpc/client:go_default_library",
  52. "//app/job/openplatform/article/conf:go_default_library",
  53. "//app/job/openplatform/article/dao:go_default_library",
  54. "//app/job/openplatform/article/model:go_default_library",
  55. "//app/service/main/thumbup/model:go_default_library",
  56. "//library/conf/env:go_default_library",
  57. "//library/log:go_default_library",
  58. "//library/log/infoc:go_default_library",
  59. "//library/queue/databus:go_default_library",
  60. "//library/stat/prom:go_default_library",
  61. "//library/sync/errgroup:go_default_library",
  62. "//vendor/github.com/jaytaylor/html2text:go_default_library",
  63. ],
  64. )
  65. filegroup(
  66. name = "package-srcs",
  67. srcs = glob(["**"]),
  68. tags = ["automanaged"],
  69. visibility = ["//visibility:private"],
  70. )
  71. filegroup(
  72. name = "all-srcs",
  73. srcs = [":package-srcs"],
  74. tags = ["automanaged"],
  75. visibility = ["//visibility:public"],
  76. )