BUILD 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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. "combine.go",
  11. "history.go",
  12. "service.go",
  13. ],
  14. importpath = "go-common/app/interface/main/tv/service/history",
  15. tags = ["automanaged"],
  16. visibility = ["//visibility:public"],
  17. deps = [
  18. "//app/interface/main/history/model:go_default_library",
  19. "//app/interface/main/tv/conf:go_default_library",
  20. "//app/interface/main/tv/dao/archive:go_default_library",
  21. "//app/interface/main/tv/dao/cms:go_default_library",
  22. "//app/interface/main/tv/dao/history:go_default_library",
  23. "//app/interface/main/tv/model:go_default_library",
  24. "//app/interface/main/tv/model/history:go_default_library",
  25. "//library/log:go_default_library",
  26. "//library/sync/errgroup:go_default_library",
  27. ],
  28. )
  29. filegroup(
  30. name = "package-srcs",
  31. srcs = glob(["**"]),
  32. tags = ["automanaged"],
  33. visibility = ["//visibility:private"],
  34. )
  35. filegroup(
  36. name = "all-srcs",
  37. srcs = [":package-srcs"],
  38. tags = ["automanaged"],
  39. visibility = ["//visibility:public"],
  40. )
  41. go_test(
  42. name = "go_default_test",
  43. srcs = ["service_test.go"],
  44. embed = [":go_default_library"],
  45. rundir = ".",
  46. tags = ["automanaged"],
  47. deps = [
  48. "//app/interface/main/tv/conf:go_default_library",
  49. "//vendor/github.com/smartystreets/goconvey/convey:go_default_library",
  50. ],
  51. )