BUILD 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. load(
  2. "@io_bazel_rules_go//go:def.bzl",
  3. "go_library",
  4. "go_test",
  5. )
  6. go_library(
  7. name = "go_default_library",
  8. srcs = [
  9. "acc.go",
  10. "dao.go",
  11. "hbase_login_log.go",
  12. "hbase_pwd_log.go",
  13. "mysql.go",
  14. ],
  15. importpath = "go-common/app/job/main/passport/dao",
  16. tags = ["automanaged"],
  17. visibility = ["//visibility:public"],
  18. deps = [
  19. "//app/job/main/passport/conf:go_default_library",
  20. "//app/job/main/passport/model:go_default_library",
  21. "//library/database/hbase.v2:go_default_library",
  22. "//library/database/sql:go_default_library",
  23. "//library/ecode:go_default_library",
  24. "//library/log:go_default_library",
  25. "//library/net/http/blademaster:go_default_library",
  26. ],
  27. )
  28. go_test(
  29. name = "go_default_test",
  30. srcs = [
  31. "acc_test.go",
  32. "dao_test.go",
  33. "hbase_login_log_test.go",
  34. "hbase_pwd_log_test.go",
  35. "mysql_test.go",
  36. ],
  37. embed = [":go_default_library"],
  38. rundir = ".",
  39. tags = ["automanaged"],
  40. deps = [
  41. "//app/job/main/passport/conf:go_default_library",
  42. "//app/job/main/passport/model:go_default_library",
  43. "//library/database/hbase.v2:go_default_library",
  44. "//library/database/sql:go_default_library",
  45. "//library/ecode:go_default_library",
  46. "//library/net/http/blademaster:go_default_library",
  47. "//library/queue/databus:go_default_library",
  48. "//library/time:go_default_library",
  49. "//vendor/github.com/bouk/monkey:go_default_library",
  50. "//vendor/github.com/smartystreets/goconvey/convey:go_default_library",
  51. "//vendor/github.com/tsuna/gohbase/hrpc:go_default_library",
  52. ],
  53. )
  54. filegroup(
  55. name = "package-srcs",
  56. srcs = glob(["**"]),
  57. tags = ["automanaged"],
  58. visibility = ["//visibility:private"],
  59. )
  60. filegroup(
  61. name = "all-srcs",
  62. srcs = [":package-srcs"],
  63. tags = ["automanaged"],
  64. visibility = ["//visibility:public"],
  65. )