BUILD 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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. "email.go",
  11. "mcn.go",
  12. "recommend.go",
  13. "service.go",
  14. "summary.go",
  15. "up.go",
  16. ],
  17. importpath = "go-common/app/job/main/mcn/service",
  18. tags = ["automanaged"],
  19. visibility = ["//visibility:public"],
  20. deps = [
  21. "//app/job/main/mcn/conf:go_default_library",
  22. "//app/job/main/mcn/dao:go_default_library",
  23. "//app/job/main/mcn/model:go_default_library",
  24. "//app/service/main/account/api:go_default_library",
  25. "//library/log:go_default_library",
  26. "//library/sync/pipeline/fanout:go_default_library",
  27. "//library/time:go_default_library",
  28. "//library/xstr:go_default_library",
  29. "//vendor/github.com/pkg/errors:go_default_library",
  30. "//vendor/github.com/robfig/cron:go_default_library",
  31. ],
  32. )
  33. filegroup(
  34. name = "package-srcs",
  35. srcs = glob(["**"]),
  36. tags = ["automanaged"],
  37. visibility = ["//visibility:private"],
  38. )
  39. filegroup(
  40. name = "all-srcs",
  41. srcs = [":package-srcs"],
  42. tags = ["automanaged"],
  43. visibility = ["//visibility:public"],
  44. )
  45. go_test(
  46. name = "go_default_test",
  47. srcs = [
  48. "mcn_test.go",
  49. "recommend_test.go",
  50. "service_test.go",
  51. "summary_test.go",
  52. "up_test.go",
  53. ],
  54. embed = [":go_default_library"],
  55. rundir = ".",
  56. tags = ["automanaged"],
  57. deps = [
  58. "//app/job/main/mcn/conf:go_default_library",
  59. "//vendor/github.com/smartystreets/goconvey/convey:go_default_library",
  60. ],
  61. )