BUILD 1.9 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. "block_test.go",
  11. "rebuild_test.go",
  12. "service_test.go",
  13. ],
  14. embed = [":go_default_library"],
  15. rundir = ".",
  16. tags = ["automanaged"],
  17. deps = [
  18. "//app/job/main/spy/conf:go_default_library",
  19. "//app/job/main/spy/model:go_default_library",
  20. "//library/cache/redis:go_default_library",
  21. "//library/log:go_default_library",
  22. "//vendor/github.com/robfig/cron:go_default_library",
  23. "//vendor/github.com/smartystreets/goconvey/convey:go_default_library",
  24. ],
  25. )
  26. go_library(
  27. name = "go_default_library",
  28. srcs = [
  29. "block.go",
  30. "rebuild.go",
  31. "report.go",
  32. "service.go",
  33. "stat.go",
  34. ],
  35. importpath = "go-common/app/job/main/spy/service",
  36. tags = ["automanaged"],
  37. visibility = ["//visibility:public"],
  38. deps = [
  39. "//app/job/main/spy/conf:go_default_library",
  40. "//app/job/main/spy/dao:go_default_library",
  41. "//app/job/main/spy/model:go_default_library",
  42. "//app/service/main/spy/model:go_default_library",
  43. "//app/service/main/spy/rpc/client:go_default_library",
  44. "//library/database/sql:go_default_library",
  45. "//library/ecode:go_default_library",
  46. "//library/log:go_default_library",
  47. "//library/queue/databus:go_default_library",
  48. "//library/stat/prom:go_default_library",
  49. "//library/time:go_default_library",
  50. "//vendor/github.com/robfig/cron:go_default_library",
  51. ],
  52. )
  53. filegroup(
  54. name = "package-srcs",
  55. srcs = glob(["**"]),
  56. tags = ["automanaged"],
  57. visibility = ["//visibility:private"],
  58. )
  59. filegroup(
  60. name = "all-srcs",
  61. srcs = [":package-srcs"],
  62. tags = ["automanaged"],
  63. visibility = ["//visibility:public"],
  64. )