BUILD 1.5 KB

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