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