BUILD 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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. "card.go",
  11. "dao.go",
  12. "rpc.go",
  13. "up_base.go",
  14. ],
  15. importpath = "go-common/app/service/main/up/dao/card",
  16. tags = ["automanaged"],
  17. visibility = ["//visibility:public"],
  18. deps = [
  19. "//app/service/main/archive/api:go_default_library",
  20. "//app/service/main/up/conf:go_default_library",
  21. "//app/service/main/up/dao:go_default_library",
  22. "//app/service/main/up/dao/global:go_default_library",
  23. "//app/service/main/up/model:go_default_library",
  24. "//library/database/sql:go_default_library",
  25. "//library/ecode:go_default_library",
  26. "//library/log:go_default_library",
  27. "//library/sync/errgroup:go_default_library",
  28. "//library/xstr:go_default_library",
  29. ],
  30. )
  31. filegroup(
  32. name = "package-srcs",
  33. srcs = glob(["**"]),
  34. tags = ["automanaged"],
  35. visibility = ["//visibility:private"],
  36. )
  37. filegroup(
  38. name = "all-srcs",
  39. srcs = [":package-srcs"],
  40. tags = ["automanaged"],
  41. visibility = ["//visibility:public"],
  42. )
  43. go_test(
  44. name = "go_default_test",
  45. srcs = [
  46. "card_test.go",
  47. "dao_test.go",
  48. "rpc_test.go",
  49. "up_base_test.go",
  50. ],
  51. embed = [":go_default_library"],
  52. rundir = ".",
  53. tags = ["automanaged"],
  54. deps = [
  55. "//app/service/main/up/conf:go_default_library",
  56. "//app/service/main/up/dao:go_default_library",
  57. "//app/service/main/up/dao/global:go_default_library",
  58. "//vendor/github.com/smartystreets/goconvey/convey:go_default_library",
  59. ],
  60. )