BUILD 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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. "bfs.go",
  11. "dao.go",
  12. "mysql.go",
  13. ],
  14. importpath = "go-common/app/admin/main/card/dao",
  15. tags = ["automanaged"],
  16. visibility = ["//visibility:public"],
  17. deps = [
  18. "//app/admin/main/card/conf:go_default_library",
  19. "//app/admin/main/card/model:go_default_library",
  20. "//library/database/orm:go_default_library",
  21. "//library/ecode:go_default_library",
  22. "//library/log:go_default_library",
  23. "//library/xstr:go_default_library",
  24. "//vendor/github.com/jinzhu/gorm:go_default_library",
  25. "//vendor/github.com/pkg/errors:go_default_library",
  26. ],
  27. )
  28. filegroup(
  29. name = "package-srcs",
  30. srcs = glob(["**"]),
  31. tags = ["automanaged"],
  32. visibility = ["//visibility:private"],
  33. )
  34. filegroup(
  35. name = "all-srcs",
  36. srcs = [":package-srcs"],
  37. tags = ["automanaged"],
  38. visibility = ["//visibility:public"],
  39. )
  40. go_test(
  41. name = "go_default_test",
  42. srcs = [
  43. "bfs_test.go",
  44. "dao_test.go",
  45. "mysql_test.go",
  46. ],
  47. embed = [":go_default_library"],
  48. rundir = ".",
  49. tags = ["automanaged"],
  50. deps = [
  51. "//app/admin/main/card/conf:go_default_library",
  52. "//app/admin/main/card/model:go_default_library",
  53. "//vendor/github.com/smartystreets/goconvey/convey:go_default_library",
  54. ],
  55. )