BUILD 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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 = ["dao_test.go"],
  10. embed = [":go_default_library"],
  11. rundir = ".",
  12. tags = ["automanaged"],
  13. deps = [
  14. "//app/interface/main/app-interface/conf:go_default_library",
  15. "//vendor/github.com/smartystreets/goconvey/convey:go_default_library",
  16. "//vendor/gopkg.in/h2non/gock.v1:go_default_library",
  17. ],
  18. )
  19. go_library(
  20. name = "go_default_library",
  21. srcs = ["dao.go"],
  22. importpath = "go-common/app/interface/main/app-interface/dao/search",
  23. tags = ["automanaged"],
  24. visibility = ["//visibility:public"],
  25. deps = [
  26. "//app/interface/main/app-interface/conf:go_default_library",
  27. "//app/interface/main/app-interface/dao/archive:go_default_library",
  28. "//app/interface/main/app-interface/dao/bangumi:go_default_library",
  29. "//app/interface/main/app-interface/dao/live:go_default_library",
  30. "//app/interface/main/app-interface/model:go_default_library",
  31. "//app/interface/main/app-interface/model/bangumi:go_default_library",
  32. "//app/interface/main/app-interface/model/live:go_default_library",
  33. "//app/interface/main/app-interface/model/search:go_default_library",
  34. "//app/service/main/archive/api:go_default_library",
  35. "//app/service/main/location/model:go_default_library",
  36. "//app/service/main/location/rpc/client:go_default_library",
  37. "//app/service/openplatform/pgc-season/api/grpc/season/v1:go_default_library",
  38. "//library/ecode:go_default_library",
  39. "//library/log:go_default_library",
  40. "//library/net/http/blademaster:go_default_library",
  41. "//library/net/metadata:go_default_library",
  42. "//library/sync/errgroup:go_default_library",
  43. "//vendor/github.com/pkg/errors:go_default_library",
  44. ],
  45. )
  46. filegroup(
  47. name = "package-srcs",
  48. srcs = glob(["**"]),
  49. tags = ["automanaged"],
  50. visibility = ["//visibility:private"],
  51. )
  52. filegroup(
  53. name = "all-srcs",
  54. srcs = [":package-srcs"],
  55. tags = ["automanaged"],
  56. visibility = ["//visibility:public"],
  57. )