BUILD 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  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. "action_test.go",
  11. "dao_test.go",
  12. "extend_test.go",
  13. "like_test.go",
  14. "match_test.go",
  15. "redis_test.go",
  16. "subject_test.go",
  17. "web_data_test.go",
  18. ],
  19. embed = [":go_default_library"],
  20. rundir = ".",
  21. tags = ["automanaged"],
  22. deps = [
  23. "//app/job/main/activity/conf:go_default_library",
  24. "//app/job/main/activity/model/like:go_default_library",
  25. "//vendor/github.com/smartystreets/goconvey/convey:go_default_library",
  26. "//vendor/gopkg.in/h2non/gock.v1:go_default_library",
  27. ],
  28. )
  29. go_library(
  30. name = "go_default_library",
  31. srcs = [
  32. "action.go",
  33. "dao.go",
  34. "extend.go",
  35. "like.go",
  36. "match.go",
  37. "redis.go",
  38. "subject.go",
  39. "web_data.go",
  40. ],
  41. importpath = "go-common/app/job/main/activity/dao/like",
  42. tags = ["automanaged"],
  43. visibility = ["//visibility:public"],
  44. deps = [
  45. "//app/admin/main/activity/model:go_default_library",
  46. "//app/job/main/activity/conf:go_default_library",
  47. "//app/job/main/activity/model/like:go_default_library",
  48. "//app/job/main/activity/model/match:go_default_library",
  49. "//library/cache/memcache:go_default_library",
  50. "//library/cache/redis:go_default_library",
  51. "//library/database/elastic:go_default_library",
  52. "//library/database/sql:go_default_library",
  53. "//library/ecode:go_default_library",
  54. "//library/log:go_default_library",
  55. "//library/net/http/blademaster:go_default_library",
  56. "//library/net/metadata:go_default_library",
  57. "//library/xstr:go_default_library",
  58. "//vendor/github.com/pkg/errors:go_default_library",
  59. "@org_golang_x_net//context:go_default_library",
  60. ],
  61. )
  62. filegroup(
  63. name = "package-srcs",
  64. srcs = glob(["**"]),
  65. tags = ["automanaged"],
  66. visibility = ["//visibility:private"],
  67. )
  68. filegroup(
  69. name = "all-srcs",
  70. srcs = [":package-srcs"],
  71. tags = ["automanaged"],
  72. visibility = ["//visibility:public"],
  73. )