BUILD 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. load(
  2. "@io_bazel_rules_go//go:def.bzl",
  3. "go_library",
  4. "go_test",
  5. )
  6. package(default_visibility = ["//visibility:public"])
  7. filegroup(
  8. name = "package-srcs",
  9. srcs = glob(["**"]),
  10. tags = ["automanaged"],
  11. visibility = ["//visibility:private"],
  12. )
  13. filegroup(
  14. name = "all-srcs",
  15. srcs = [":package-srcs"],
  16. tags = ["automanaged"],
  17. )
  18. go_library(
  19. name = "go_default_library",
  20. srcs = [
  21. "commandinfo.go",
  22. "conn.go",
  23. "doc.go",
  24. "errors.go",
  25. "log.go",
  26. "mock.go",
  27. "pool.go",
  28. "pubsub.go",
  29. "redis.go",
  30. "reply.go",
  31. "scan.go",
  32. "script.go",
  33. "trace.go",
  34. ],
  35. importpath = "go-common/library/cache/redis",
  36. tags = ["automanaged"],
  37. deps = [
  38. "//library/container/pool:go_default_library",
  39. "//library/net/trace:go_default_library",
  40. "//library/stat:go_default_library",
  41. "//library/time:go_default_library",
  42. "//vendor/github.com/pkg/errors:go_default_library",
  43. ],
  44. )
  45. go_test(
  46. name = "go_default_test",
  47. srcs = [
  48. "commandinfo_test.go",
  49. "conn_test.go",
  50. "pool_test.go",
  51. "pubsub_test.go",
  52. "redis_test.go",
  53. "reply_test.go",
  54. "scan_test.go",
  55. "script_test.go",
  56. "test_test.go",
  57. "trace_test.go",
  58. ],
  59. embed = [":go_default_library"],
  60. rundir = ".",
  61. tags = ["automanaged"],
  62. deps = [
  63. "//library/container/pool:go_default_library",
  64. "//library/net/trace:go_default_library",
  65. "//library/time:go_default_library",
  66. "//vendor/github.com/pkg/errors:go_default_library",
  67. "//vendor/github.com/stretchr/testify/assert:go_default_library",
  68. ],
  69. )