BUILD 968 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  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 = "server",
  9. embed = [":go_default_library"],
  10. tags = ["automanaged"],
  11. )
  12. go_library(
  13. name = "go_default_library",
  14. srcs = ["server.go"],
  15. importpath = "go-common/library/net/rpc/warden/balancer/wrr/test/server",
  16. tags = ["automanaged"],
  17. visibility = ["//visibility:public"],
  18. deps = [
  19. "//library/ecode:go_default_library",
  20. "//library/log:go_default_library",
  21. "//library/net/rpc/warden:go_default_library",
  22. "//library/net/rpc/warden/proto/testproto: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 = [":package-srcs"],
  34. tags = ["automanaged"],
  35. visibility = ["//visibility:public"],
  36. )