BUILD 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  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 = [
  10. "coin_test.go",
  11. "exp_test.go",
  12. "service_test.go",
  13. "usercoin_test.go",
  14. ],
  15. embed = [":go_default_library"],
  16. rundir = ".",
  17. tags = ["automanaged"],
  18. deps = [
  19. "//app/service/main/coin/api:go_default_library",
  20. "//app/service/main/coin/conf:go_default_library",
  21. "//vendor/github.com/smartystreets/goconvey/convey:go_default_library",
  22. ],
  23. )
  24. go_library(
  25. name = "go_default_library",
  26. srcs = [
  27. "archive.go",
  28. "check.go",
  29. "coin.go",
  30. "exp.go",
  31. "service.go",
  32. "usercoin.go",
  33. ],
  34. importpath = "go-common/app/service/main/coin/service",
  35. tags = ["automanaged"],
  36. deps = [
  37. "//app/service/main/coin/api:go_default_library",
  38. "//app/service/main/coin/conf:go_default_library",
  39. "//app/service/main/coin/dao:go_default_library",
  40. "//app/service/main/coin/model:go_default_library",
  41. "//app/service/main/member/api:go_default_library",
  42. "//app/service/main/member/model:go_default_library",
  43. "//app/service/main/member/model/block:go_default_library",
  44. "//library/database/sql:go_default_library",
  45. "//library/ecode:go_default_library",
  46. "//library/log:go_default_library",
  47. "//library/net/metadata:go_default_library",
  48. "//library/sync/errgroup.v2:go_default_library",
  49. "//library/sync/pipeline/fanout:go_default_library",
  50. "//library/time:go_default_library",
  51. "//library/xstr:go_default_library",
  52. ],
  53. )
  54. filegroup(
  55. name = "package-srcs",
  56. srcs = glob(["**"]),
  57. tags = ["automanaged"],
  58. visibility = ["//visibility:private"],
  59. )
  60. filegroup(
  61. name = "all-srcs",
  62. srcs = [":package-srcs"],
  63. tags = ["automanaged"],
  64. visibility = ["//visibility:public"],
  65. )