BUILD 906 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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 = [
  10. "graph_test.go",
  11. "grok_test.go",
  12. ],
  13. embed = [":go_default_library"],
  14. tags = ["automanaged"],
  15. )
  16. go_library(
  17. name = "go_default_library",
  18. srcs = [
  19. "graph.go",
  20. "grok.go",
  21. "patterns.go",
  22. ],
  23. importpath = "github.com/vjeantet/grok",
  24. tags = ["automanaged"],
  25. visibility = ["//visibility:public"],
  26. )
  27. filegroup(
  28. name = "package-srcs",
  29. srcs = glob(["**"]),
  30. tags = ["automanaged"],
  31. visibility = ["//visibility:private"],
  32. )
  33. filegroup(
  34. name = "all-srcs",
  35. srcs = [
  36. ":package-srcs",
  37. "//vendor/github.com/vjeantet/grok/example:all-srcs",
  38. ],
  39. tags = ["automanaged"],
  40. visibility = ["//visibility:public"],
  41. )