BUILD 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  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. "cache.go",
  11. "dao.cache.go",
  12. "dao.go",
  13. "mc.cache.go",
  14. "mysql.go",
  15. ],
  16. importpath = "go-common/app/service/main/card/dao",
  17. tags = ["automanaged"],
  18. visibility = ["//visibility:public"],
  19. deps = [
  20. "//app/service/main/card/conf:go_default_library",
  21. "//app/service/main/card/model:go_default_library",
  22. "//library/cache:go_default_library",
  23. "//library/cache/memcache:go_default_library",
  24. "//library/database/sql:go_default_library",
  25. "//library/log:go_default_library",
  26. "//library/net/metadata:go_default_library",
  27. "//library/stat/prom:go_default_library",
  28. "//library/sync/errgroup:go_default_library",
  29. "//library/xstr:go_default_library",
  30. "//vendor/github.com/pkg/errors:go_default_library",
  31. "//vendor/golang.org/x/sync/singleflight:go_default_library",
  32. ],
  33. )
  34. filegroup(
  35. name = "package-srcs",
  36. srcs = glob(["**"]),
  37. tags = ["automanaged"],
  38. visibility = ["//visibility:private"],
  39. )
  40. filegroup(
  41. name = "all-srcs",
  42. srcs = [":package-srcs"],
  43. tags = ["automanaged"],
  44. visibility = ["//visibility:public"],
  45. )
  46. go_test(
  47. name = "go_default_test",
  48. srcs = [
  49. "cache_test.go",
  50. "dao.cache_test.go",
  51. "dao_test.go",
  52. "mc.cache_test.go",
  53. "mysql_test.go",
  54. ],
  55. embed = [":go_default_library"],
  56. rundir = ".",
  57. tags = ["automanaged"],
  58. deps = [
  59. "//app/service/main/card/conf:go_default_library",
  60. "//app/service/main/card/model:go_default_library",
  61. "//vendor/github.com/smartystreets/goconvey/convey:go_default_library",
  62. ],
  63. )