BUILD 875 B

12345678910111213141516171819202122232425262728293031323334353637383940
  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 = ["filewriter_test.go"],
  10. embed = [":go_default_library"],
  11. tags = ["automanaged"],
  12. deps = ["//vendor/github.com/stretchr/testify/assert:go_default_library"],
  13. )
  14. go_library(
  15. name = "go_default_library",
  16. srcs = [
  17. "filewriter.go",
  18. "option.go",
  19. ],
  20. importpath = "go-common/library/log/internal/filewriter",
  21. tags = ["automanaged"],
  22. visibility = ["//visibility:public"],
  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 = [":package-srcs"],
  33. tags = ["automanaged"],
  34. visibility = ["//visibility:public"],
  35. )