BUILD 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  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. "search_test.go",
  11. "service_test.go",
  12. "video_test.go",
  13. ],
  14. embed = [":go_default_library"],
  15. rundir = ".",
  16. tags = ["automanaged"],
  17. deps = [
  18. "//app/admin/main/videoup-task/conf:go_default_library",
  19. "//app/admin/main/videoup-task/model: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. "consumer.go",
  27. "extra_func.go",
  28. "log.go",
  29. "oper.go",
  30. "qa_video.go",
  31. "review.go",
  32. "search.go",
  33. "service.go",
  34. "task.go",
  35. "task_dispatch.go",
  36. "task_report.go",
  37. "utils.go",
  38. "video.go",
  39. "weight.go",
  40. ],
  41. importpath = "go-common/app/admin/main/videoup-task/service",
  42. tags = ["automanaged"],
  43. visibility = ["//visibility:public"],
  44. deps = [
  45. "//app/admin/main/videoup-task/conf:go_default_library",
  46. "//app/admin/main/videoup-task/dao:go_default_library",
  47. "//app/admin/main/videoup-task/model:go_default_library",
  48. "//app/admin/main/videoup/model/archive:go_default_library",
  49. "//app/service/main/account/api:go_default_library",
  50. "//app/service/main/account/model:go_default_library",
  51. "//app/service/main/up/api/v1:go_default_library",
  52. "//library/database/elastic:go_default_library",
  53. "//library/database/sql:go_default_library",
  54. "//library/ecode:go_default_library",
  55. "//library/log:go_default_library",
  56. "//library/net/http/blademaster:go_default_library",
  57. "//library/queue/databus/report:go_default_library",
  58. "//library/sync/errgroup:go_default_library",
  59. "//library/xstr:go_default_library",
  60. ],
  61. )
  62. filegroup(
  63. name = "package-srcs",
  64. srcs = glob(["**"]),
  65. tags = ["automanaged"],
  66. visibility = ["//visibility:private"],
  67. )
  68. filegroup(
  69. name = "all-srcs",
  70. srcs = [":package-srcs"],
  71. tags = ["automanaged"],
  72. visibility = ["//visibility:public"],
  73. )