BUILD 851 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. package(default_visibility = ["//visibility:public"])
  2. load(
  3. "@io_bazel_rules_go//go:def.bzl",
  4. "go_library",
  5. "go_binary",
  6. )
  7. go_library(
  8. name = "go_default_library",
  9. srcs = ["main.go"],
  10. importpath = "go-common/app/tool/owner",
  11. tags = ["automanaged"],
  12. visibility = ["//visibility:public"],
  13. deps = [
  14. "//vendor/github.com/ghodss/yaml:go_default_library",
  15. "//vendor/k8s.io/apimachinery/pkg/util/sets:go_default_library",
  16. ],
  17. )
  18. filegroup(
  19. name = "package-srcs",
  20. srcs = glob(["**"]),
  21. tags = ["automanaged"],
  22. visibility = ["//visibility:private"],
  23. )
  24. filegroup(
  25. name = "all-srcs",
  26. srcs = [":package-srcs"],
  27. tags = ["automanaged"],
  28. visibility = ["//visibility:public"],
  29. )
  30. go_binary(
  31. name = "owner",
  32. embed = [":go_default_library"],
  33. tags = ["automanaged"],
  34. )