BUILD 1.3 KB

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