BUILD 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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. "search.go",
  11. "service.go",
  12. "wild.go",
  13. ],
  14. importpath = "go-common/app/interface/main/tv/service/search",
  15. tags = ["automanaged"],
  16. visibility = ["//visibility:public"],
  17. deps = [
  18. "//app/interface/main/tv/conf:go_default_library",
  19. "//app/interface/main/tv/dao/archive:go_default_library",
  20. "//app/interface/main/tv/dao/cms:go_default_library",
  21. "//app/interface/main/tv/dao/search:go_default_library",
  22. "//app/interface/main/tv/model:go_default_library",
  23. "//app/interface/main/tv/model/search:go_default_library",
  24. "//app/service/main/archive/api: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. "service_test.go",
  47. "wild_test.go",
  48. ],
  49. embed = [":go_default_library"],
  50. rundir = ".",
  51. tags = ["automanaged"],
  52. deps = [
  53. "//app/interface/main/tv/conf:go_default_library",
  54. "//app/interface/main/tv/model/search:go_default_library",
  55. "//vendor/github.com/smartystreets/goconvey/convey:go_default_library",
  56. ],
  57. )