BUILD 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  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 = [
  16. ":package-srcs",
  17. "//library/cache/memcache/test:all-srcs",
  18. ],
  19. tags = ["automanaged"],
  20. )
  21. go_library(
  22. name = "go_default_library",
  23. srcs = [
  24. "client.go",
  25. "conn.go",
  26. "errors.go",
  27. "memcache.go",
  28. "mock.go",
  29. "pool.go",
  30. "trace.go",
  31. "util.go",
  32. ],
  33. importpath = "go-common/library/cache/memcache",
  34. tags = ["automanaged"],
  35. deps = [
  36. "//library/container/pool:go_default_library",
  37. "//library/net/trace:go_default_library",
  38. "//library/stat:go_default_library",
  39. "//library/time:go_default_library",
  40. "//vendor/github.com/pkg/errors:go_default_library",
  41. "@com_github_gogo_protobuf//proto:go_default_library",
  42. ],
  43. )
  44. go_test(
  45. name = "go_default_test",
  46. srcs = [
  47. "client_test.go",
  48. "conn_test.go",
  49. "memcache_test.go",
  50. "pool_test.go",
  51. "util_test.go",
  52. ],
  53. embed = [":go_default_library"],
  54. rundir = ".",
  55. tags = ["automanaged"],
  56. deps = [
  57. "//library/cache/memcache/test:go_default_library",
  58. "//library/container/pool:go_default_library",
  59. "//library/time:go_default_library",
  60. "//vendor/github.com/bouk/monkey:go_default_library",
  61. "//vendor/github.com/stretchr/testify/assert:go_default_library",
  62. "@com_github_gogo_protobuf//proto:go_default_library",
  63. ],
  64. )