BUILD 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. load(
  2. "@io_bazel_rules_go//go:def.bzl",
  3. "go_library",
  4. "go_test",
  5. )
  6. go_library(
  7. name = "go_default_library",
  8. srcs = [
  9. "aso_bin_log.go",
  10. "service.go",
  11. ],
  12. importpath = "go-common/app/job/main/passport-game-local/service",
  13. tags = ["automanaged"],
  14. visibility = ["//visibility:public"],
  15. deps = [
  16. "//app/job/main/passport-game-local/conf:go_default_library",
  17. "//app/job/main/passport-game-local/model:go_default_library",
  18. "//library/log:go_default_library",
  19. "//library/queue/databus:go_default_library",
  20. ],
  21. )
  22. filegroup(
  23. name = "package-srcs",
  24. srcs = glob(["**"]),
  25. tags = ["automanaged"],
  26. visibility = ["//visibility:private"],
  27. )
  28. filegroup(
  29. name = "all-srcs",
  30. srcs = [":package-srcs"],
  31. tags = ["automanaged"],
  32. visibility = ["//visibility:public"],
  33. )
  34. go_test(
  35. name = "go_default_test",
  36. srcs = [
  37. "aso_bin_log_test.go",
  38. "service_test.go",
  39. ],
  40. embed = [":go_default_library"],
  41. rundir = ".",
  42. tags = ["automanaged"],
  43. deps = [
  44. "//app/job/main/passport-game-local/conf:go_default_library",
  45. "//vendor/github.com/smartystreets/goconvey/convey:go_default_library",
  46. ],
  47. )