BUILD 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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. "duplicate.go",
  12. "mc.go",
  13. "mysql.go",
  14. "user.go",
  15. ],
  16. importpath = "go-common/app/job/main/passport-user/dao",
  17. tags = ["automanaged"],
  18. visibility = ["//visibility:public"],
  19. deps = [
  20. "//app/job/main/passport-user/conf:go_default_library",
  21. "//app/job/main/passport-user/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. ],
  26. )
  27. filegroup(
  28. name = "package-srcs",
  29. srcs = glob(["**"]),
  30. tags = ["automanaged"],
  31. visibility = ["//visibility:private"],
  32. )
  33. filegroup(
  34. name = "all-srcs",
  35. srcs = [":package-srcs"],
  36. tags = ["automanaged"],
  37. visibility = ["//visibility:public"],
  38. )
  39. go_test(
  40. name = "go_default_test",
  41. srcs = [
  42. "dao_test.go",
  43. "mc_test.go",
  44. ],
  45. embed = [":go_default_library"],
  46. rundir = ".",
  47. tags = ["automanaged"],
  48. deps = [
  49. "//app/job/main/passport-user/conf:go_default_library",
  50. "//app/job/main/passport-user/model:go_default_library",
  51. "//vendor/github.com/smartystreets/goconvey/convey:go_default_library",
  52. ],
  53. )