BUILD 1.6 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. "clean_cache.go",
  11. "service.go",
  12. "syn_auth.go",
  13. "sync_all.go",
  14. ],
  15. importpath = "go-common/app/job/main/passport-auth/service",
  16. tags = ["automanaged"],
  17. visibility = ["//visibility:public"],
  18. deps = [
  19. "//app/job/main/passport-auth/conf:go_default_library",
  20. "//app/job/main/passport-auth/dao:go_default_library",
  21. "//app/job/main/passport-auth/model:go_default_library",
  22. "//app/service/main/passport-auth/rpc/client:go_default_library",
  23. "//library/log:go_default_library",
  24. "//library/queue/databus:go_default_library",
  25. "//library/queue/databus/databusutil:go_default_library",
  26. "//library/time: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 = [
  44. "clean_cache_test.go",
  45. "service_test.go",
  46. "syn_auth_test.go",
  47. "sync_all_test.go",
  48. ],
  49. embed = [":go_default_library"],
  50. rundir = ".",
  51. tags = ["automanaged"],
  52. deps = [
  53. "//app/job/main/passport-auth/conf:go_default_library",
  54. "//app/job/main/passport-auth/model:go_default_library",
  55. "//vendor/github.com/smartystreets/goconvey/convey:go_default_library",
  56. ],
  57. )