BUILD 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. load(
  2. "@io_bazel_rules_go//go:def.bzl",
  3. "go_library",
  4. "go_test",
  5. )
  6. go_library(
  7. name = "go_default_library",
  8. srcs = [
  9. "dao.cache.go",
  10. "dao.go",
  11. "multi.go",
  12. "none.go",
  13. "single.go",
  14. ],
  15. importpath = "go-common/app/tool/cache/testdata",
  16. tags = ["automanaged"],
  17. visibility = ["//visibility:public"],
  18. deps = [
  19. "//library/stat/prom:go_default_library",
  20. "//library/sync/errgroup:go_default_library",
  21. "//library/sync/pipeline/fanout:go_default_library",
  22. ],
  23. )
  24. go_test(
  25. name = "go_default_test",
  26. srcs = [
  27. "multi_test.go",
  28. "none_test.go",
  29. "single_test.go",
  30. ],
  31. embed = [":go_default_library"],
  32. rundir = ".",
  33. tags = ["automanaged"],
  34. )
  35. filegroup(
  36. name = "package-srcs",
  37. srcs = glob(["**"]),
  38. tags = ["automanaged"],
  39. visibility = ["//visibility:private"],
  40. )
  41. filegroup(
  42. name = "all-srcs",
  43. srcs = [":package-srcs"],
  44. tags = ["automanaged"],
  45. visibility = ["//visibility:public"],
  46. )