BUILD 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. load(
  2. "@io_bazel_rules_go//go:def.bzl",
  3. "go_library",
  4. "go_test",
  5. )
  6. package(default_visibility = ["//visibility:public"])
  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. )
  18. go_library(
  19. name = "go_default_library",
  20. srcs = [
  21. "dao.go",
  22. "draw.go",
  23. "es.go",
  24. "mysql.go",
  25. "redis.go",
  26. ],
  27. importpath = "go-common/app/admin/main/answer/dao",
  28. tags = ["automanaged"],
  29. visibility = ["//visibility:public"],
  30. deps = [
  31. "//app/admin/main/answer/conf:go_default_library",
  32. "//app/admin/main/answer/model:go_default_library",
  33. "//library/cache/redis:go_default_library",
  34. "//library/database/elastic:go_default_library",
  35. "//library/database/orm:go_default_library",
  36. "//library/log:go_default_library",
  37. "//library/time:go_default_library",
  38. "//vendor/github.com/golang/freetype:go_default_library",
  39. "//vendor/github.com/jinzhu/gorm:go_default_library",
  40. "//vendor/golang.org/x/image/font:go_default_library",
  41. "//vendor/golang.org/x/image/math/fixed:go_default_library",
  42. ],
  43. )
  44. go_test(
  45. name = "go_default_test",
  46. srcs = [
  47. "dao_test.go",
  48. "draw_test.go",
  49. "es_test.go",
  50. "mysql_test.go",
  51. "redis_test.go",
  52. ],
  53. embed = [":go_default_library"],
  54. rundir = ".",
  55. tags = ["automanaged"],
  56. deps = [
  57. "//app/admin/main/answer/conf:go_default_library",
  58. "//app/admin/main/answer/model:go_default_library",
  59. "//vendor/github.com/smartystreets/goconvey/convey:go_default_library",
  60. ],
  61. )