BUILD 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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. "infoc.go",
  11. "package.go",
  12. "service.go",
  13. ],
  14. importpath = "go-common/app/job/live/gift/internal/service",
  15. tags = ["automanaged"],
  16. visibility = ["//visibility:public"],
  17. deps = [
  18. "//app/job/live/gift/api:go_default_library",
  19. "//app/job/live/gift/internal/conf:go_default_library",
  20. "//app/job/live/gift/internal/dao:go_default_library",
  21. "//app/job/live/gift/internal/model:go_default_library",
  22. "//library/log:go_default_library",
  23. "//library/log/infoc:go_default_library",
  24. "//library/queue/databus:go_default_library",
  25. "//library/sync/errgroup:go_default_library",
  26. "@io_bazel_rules_go//proto/wkt:empty_go_proto",
  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 = [
  44. "infoc_test.go",
  45. "package_test.go",
  46. "service_test.go",
  47. ],
  48. embed = [":go_default_library"],
  49. tags = ["automanaged"],
  50. deps = [
  51. "//app/job/live/gift/internal/conf:go_default_library",
  52. "//app/job/live/gift/internal/model:go_default_library",
  53. "//vendor/github.com/smartystreets/goconvey/convey:go_default_library",
  54. ],
  55. )