BUILD 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. package(default_visibility = ["//visibility:public"])
  2. load(
  3. "@io_bazel_rules_go//go:def.bzl",
  4. "go_library",
  5. )
  6. go_library(
  7. name = "go_default_library",
  8. srcs = [
  9. "resolver.go",
  10. "util.go",
  11. ],
  12. importpath = "go-common/library/net/rpc/warden/resolver",
  13. tags = ["automanaged"],
  14. visibility = ["//visibility:public"],
  15. deps = [
  16. "//library/conf/env:go_default_library",
  17. "//library/log:go_default_library",
  18. "//library/naming:go_default_library",
  19. "//library/net/rpc/warden/metadata:go_default_library",
  20. "//vendor/github.com/dgryski/go-farm:go_default_library",
  21. "//vendor/github.com/pkg/errors:go_default_library",
  22. "@org_golang_google_grpc//resolver:go_default_library",
  23. ],
  24. )
  25. filegroup(
  26. name = "package-srcs",
  27. srcs = glob(["**"]),
  28. tags = ["automanaged"],
  29. visibility = ["//visibility:private"],
  30. )
  31. filegroup(
  32. name = "all-srcs",
  33. srcs = [
  34. ":package-srcs",
  35. "//library/net/rpc/warden/resolver/direct:all-srcs",
  36. "//library/net/rpc/warden/resolver/livezk:all-srcs",
  37. "//library/net/rpc/warden/resolver/test:all-srcs",
  38. ],
  39. tags = ["automanaged"],
  40. visibility = ["//visibility:public"],
  41. )