BUILD 988 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. package(default_visibility = ["//visibility:public"])
  2. load(
  3. "@io_bazel_rules_go//go:def.bzl",
  4. "go_library",
  5. "go_test",
  6. )
  7. go_library(
  8. name = "go_default_library",
  9. srcs = [
  10. "panel.go",
  11. "rpc.go",
  12. ],
  13. importpath = "go-common/app/service/main/vip/rpc/client",
  14. tags = ["automanaged"],
  15. visibility = ["//visibility:public"],
  16. deps = [
  17. "//app/service/main/coupon/model:go_default_library",
  18. "//app/service/main/vip/model:go_default_library",
  19. "//library/net/rpc:go_default_library",
  20. ],
  21. )
  22. filegroup(
  23. name = "package-srcs",
  24. srcs = glob(["**"]),
  25. tags = ["automanaged"],
  26. visibility = ["//visibility:private"],
  27. )
  28. filegroup(
  29. name = "all-srcs",
  30. srcs = [":package-srcs"],
  31. tags = ["automanaged"],
  32. visibility = ["//visibility:public"],
  33. )
  34. go_test(
  35. name = "go_default_test",
  36. srcs = ["rpc_test.go"],
  37. embed = [":go_default_library"],
  38. rundir = ".",
  39. tags = ["automanaged"],
  40. )