BUILD 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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. "http.go",
  12. "mc.go",
  13. "mysql.go",
  14. ],
  15. importpath = "go-common/app/service/main/member/dao/block",
  16. tags = ["automanaged"],
  17. visibility = ["//visibility:public"],
  18. deps = [
  19. "//app/service/main/member/conf:go_default_library",
  20. "//app/service/main/member/model/block:go_default_library",
  21. "//library/cache/memcache: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. "//library/time:go_default_library",
  27. "//library/xstr:go_default_library",
  28. "//vendor/github.com/pkg/errors: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. "http_test.go",
  48. "mc_test.go",
  49. "mysql_test.go",
  50. ],
  51. embed = [":go_default_library"],
  52. rundir = ".",
  53. tags = ["automanaged"],
  54. deps = [
  55. "//app/service/main/member/conf:go_default_library",
  56. "//app/service/main/member/model/block:go_default_library",
  57. "//library/cache/memcache:go_default_library",
  58. "//library/database/sql:go_default_library",
  59. "//library/net/http/blademaster:go_default_library",
  60. "//vendor/github.com/smartystreets/goconvey/convey:go_default_library",
  61. ],
  62. )