BUILD 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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. "aes.go",
  10. "aso.go",
  11. "aso_full_migration.go",
  12. "aso_incr_migration.go",
  13. "passport_util.go",
  14. "service.go",
  15. ],
  16. importpath = "go-common/app/job/main/passport-encrypt/service",
  17. tags = ["automanaged"],
  18. visibility = ["//visibility:public"],
  19. deps = [
  20. "//app/job/main/passport-encrypt/conf:go_default_library",
  21. "//app/job/main/passport-encrypt/dao:go_default_library",
  22. "//app/job/main/passport-encrypt/model:go_default_library",
  23. "//library/log:go_default_library",
  24. "//library/queue/databus:go_default_library",
  25. ],
  26. )
  27. filegroup(
  28. name = "package-srcs",
  29. srcs = glob(["**"]),
  30. tags = ["automanaged"],
  31. visibility = ["//visibility:private"],
  32. )
  33. filegroup(
  34. name = "all-srcs",
  35. srcs = [":package-srcs"],
  36. tags = ["automanaged"],
  37. visibility = ["//visibility:public"],
  38. )
  39. go_test(
  40. name = "go_default_test",
  41. srcs = [
  42. "aes_test.go",
  43. "aso_full_migration_test.go",
  44. "aso_incr_migration_test.go",
  45. "passport_util_test.go",
  46. "service_test.go",
  47. ],
  48. embed = [":go_default_library"],
  49. rundir = ".",
  50. tags = ["automanaged"],
  51. deps = [
  52. "//app/job/main/passport-encrypt/conf:go_default_library",
  53. "//app/job/main/passport-encrypt/model:go_default_library",
  54. "//vendor/github.com/smartystreets/goconvey/convey:go_default_library",
  55. ],
  56. )