BUILD 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. package(default_visibility = ["//visibility:public"])
  2. load(
  3. "@io_bazel_rules_go//go:def.bzl",
  4. "go_library",
  5. "go_test",
  6. )
  7. filegroup(
  8. name = "package-srcs",
  9. srcs = glob(["**"]),
  10. tags = ["automanaged"],
  11. visibility = ["//visibility:private"],
  12. )
  13. filegroup(
  14. name = "all-srcs",
  15. srcs = [":package-srcs"],
  16. tags = ["automanaged"],
  17. visibility = ["//visibility:public"],
  18. )
  19. go_library(
  20. name = "go_default_library",
  21. srcs = [
  22. "alipay.go",
  23. "antispam.go",
  24. "geetest.go",
  25. "realname.go",
  26. ],
  27. importpath = "go-common/app/interface/main/account/dao/realname",
  28. tags = ["automanaged"],
  29. visibility = ["//visibility:public"],
  30. deps = [
  31. "//app/interface/main/account/conf:go_default_library",
  32. "//library/cache/memcache:go_default_library",
  33. "//library/ecode:go_default_library",
  34. "//library/log:go_default_library",
  35. "//library/net/http/blademaster:go_default_library",
  36. "//library/net/metadata:go_default_library",
  37. "//vendor/github.com/pkg/errors:go_default_library",
  38. ],
  39. )
  40. go_test(
  41. name = "go_default_test",
  42. srcs = ["realname_test.go"],
  43. embed = [":go_default_library"],
  44. rundir = ".",
  45. tags = ["automanaged"],
  46. deps = [
  47. "//app/interface/main/account/conf:go_default_library",
  48. "//vendor/github.com/smartystreets/goconvey/convey:go_default_library",
  49. ],
  50. )