BUILD 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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 = ["client_test.go"],
  10. rundir = ".",
  11. tags = ["automanaged"],
  12. deps = [
  13. "//library/net/rpc/liverpc:go_default_library",
  14. "//library/net/rpc/liverpc/testdata:go_default_library",
  15. "//library/net/rpc/liverpc/testdata/v1:go_default_library",
  16. "//library/net/rpc/liverpc/testdata/v2:go_default_library",
  17. "//vendor/github.com/pkg/errors:go_default_library",
  18. ],
  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. )
  32. go_library(
  33. name = "go_default_library",
  34. srcs = ["client.go"],
  35. importpath = "go-common/library/net/rpc/liverpc/test",
  36. tags = ["automanaged"],
  37. visibility = ["//visibility:public"],
  38. )