BUILD 775 B

123456789101112131415161718192021222324252627282930313233343536
  1. package(default_visibility = ["//visibility:public"])
  2. load(
  3. "@io_bazel_rules_go//go:def.bzl",
  4. "go_binary",
  5. "go_library",
  6. )
  7. go_binary(
  8. name = "example",
  9. embed = [":go_default_library"],
  10. tags = ["automanaged"],
  11. )
  12. go_library(
  13. name = "go_default_library",
  14. srcs = ["main.go"],
  15. importpath = "github.com/vjeantet/grok/example",
  16. tags = ["automanaged"],
  17. visibility = ["//visibility:public"],
  18. deps = ["//vendor/github.com/vjeantet/grok:go_default_library"],
  19. )
  20. filegroup(
  21. name = "package-srcs",
  22. srcs = glob(["**"]),
  23. tags = ["automanaged"],
  24. visibility = ["//visibility:private"],
  25. )
  26. filegroup(
  27. name = "all-srcs",
  28. srcs = [":package-srcs"],
  29. tags = ["automanaged"],
  30. visibility = ["//visibility:public"],
  31. )