BUILD 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  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. "content_ext_test.go",
  11. "service_test.go",
  12. "upload_test.go",
  13. ],
  14. embed = [":go_default_library"],
  15. rundir = ".",
  16. tags = ["automanaged"],
  17. deps = [
  18. "//app/admin/main/up/conf:go_default_library",
  19. "//library/net/http/blademaster:go_default_library",
  20. "//vendor/github.com/smartystreets/goconvey/convey:go_default_library",
  21. ],
  22. )
  23. go_library(
  24. name = "go_default_library",
  25. srcs = [
  26. "content_ext.go",
  27. "service.go",
  28. "upload.go",
  29. ],
  30. importmap = "go-common/app/admin/main/up/service",
  31. importpath = "go-common/app/admin/main/up/service",
  32. tags = ["automanaged"],
  33. visibility = ["//visibility:public"],
  34. deps = [
  35. "//app/admin/main/up/conf:go_default_library",
  36. "//app/admin/main/up/dao:go_default_library",
  37. "//app/admin/main/up/dao/global:go_default_library",
  38. "//app/admin/main/up/dao/manager:go_default_library",
  39. "//app/admin/main/up/service/upcrmservice:go_default_library",
  40. "//app/admin/main/up/util:go_default_library",
  41. "//library/ecode:go_default_library",
  42. "//library/log:go_default_library",
  43. "//library/net/http/blademaster:go_default_library",
  44. "//library/net/http/blademaster/render:go_default_library",
  45. "//library/stat/prom:go_default_library",
  46. ],
  47. )
  48. filegroup(
  49. name = "package-srcs",
  50. srcs = glob(["**"]),
  51. tags = ["automanaged"],
  52. visibility = ["//visibility:private"],
  53. )
  54. filegroup(
  55. name = "all-srcs",
  56. srcs = [
  57. ":package-srcs",
  58. "//app/admin/main/up/service/cache:all-srcs",
  59. "//app/admin/main/up/service/data:all-srcs",
  60. "//app/admin/main/up/service/upcrmservice:all-srcs",
  61. ],
  62. tags = ["automanaged"],
  63. visibility = ["//visibility:public"],
  64. )