BUILD 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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. "buffer.go",
  11. "bufferpool.go",
  12. "encoder.go",
  13. "field.go",
  14. "json_encoder.go",
  15. "pool.go",
  16. ],
  17. importpath = "go-common/library/log/internal",
  18. tags = ["automanaged"],
  19. visibility = ["//visibility:public"],
  20. )
  21. filegroup(
  22. name = "package-srcs",
  23. srcs = glob(["**"]),
  24. tags = ["automanaged"],
  25. visibility = ["//visibility:private"],
  26. )
  27. filegroup(
  28. name = "all-srcs",
  29. srcs = [
  30. ":package-srcs",
  31. "//library/log/internal/filewriter:all-srcs",
  32. ],
  33. tags = ["automanaged"],
  34. visibility = ["//visibility:public"],
  35. )
  36. go_test(
  37. name = "go_default_test",
  38. srcs = [
  39. "buffer_test.go",
  40. "pool_test.go",
  41. ],
  42. embed = [":go_default_library"],
  43. rundir = ".",
  44. tags = ["automanaged"],
  45. deps = ["//vendor/github.com/stretchr/testify/assert:go_default_library"],
  46. )