BUILD 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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_full_migration.go",
  11. "aso_incr_migration.go",
  12. "duplicate.go",
  13. "passport_util.go",
  14. "service.go",
  15. "user.go",
  16. ],
  17. importpath = "go-common/app/job/main/passport-user/service",
  18. tags = ["automanaged"],
  19. visibility = ["//visibility:public"],
  20. deps = [
  21. "//app/job/main/passport-user/conf:go_default_library",
  22. "//app/job/main/passport-user/dao:go_default_library",
  23. "//app/job/main/passport-user/model:go_default_library",
  24. "//library/database/sql:go_default_library",
  25. "//library/log:go_default_library",
  26. "//library/queue/databus:go_default_library",
  27. "//library/queue/databus/databusutil:go_default_library",
  28. "//vendor/github.com/go-sql-driver/mysql:go_default_library",
  29. "//vendor/github.com/pkg/errors:go_default_library",
  30. ],
  31. )
  32. filegroup(
  33. name = "package-srcs",
  34. srcs = glob(["**"]),
  35. tags = ["automanaged"],
  36. visibility = ["//visibility:private"],
  37. )
  38. filegroup(
  39. name = "all-srcs",
  40. srcs = [":package-srcs"],
  41. tags = ["automanaged"],
  42. visibility = ["//visibility:public"],
  43. )
  44. go_test(
  45. name = "go_default_test",
  46. srcs = ["aes_test.go"],
  47. embed = [":go_default_library"],
  48. rundir = ".",
  49. tags = ["automanaged"],
  50. )