BUILD 948 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. package(default_visibility = ["//visibility:public"])
  2. load(
  3. "@io_bazel_rules_go//go:def.bzl",
  4. "go_test",
  5. "go_library",
  6. )
  7. go_test(
  8. name = "go_default_test",
  9. srcs = ["cache_test.go"],
  10. embed = [":go_default_library"],
  11. tags = ["automanaged"],
  12. )
  13. go_library(
  14. name = "go_default_library",
  15. srcs = ["cache.go"],
  16. importpath = "go-common/library/cache",
  17. tags = ["automanaged"],
  18. visibility = ["//visibility:public"],
  19. deps = [
  20. "//library/log:go_default_library",
  21. "//library/stat/prom:go_default_library",
  22. ],
  23. )
  24. filegroup(
  25. name = "package-srcs",
  26. srcs = glob(["**"]),
  27. tags = ["automanaged"],
  28. visibility = ["//visibility:private"],
  29. )
  30. filegroup(
  31. name = "all-srcs",
  32. srcs = [
  33. ":package-srcs",
  34. "//library/cache/memcache:all-srcs",
  35. "//library/cache/redis:all-srcs",
  36. ],
  37. tags = ["automanaged"],
  38. visibility = ["//visibility:public"],
  39. )