BUILD 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. package(default_visibility = ["//visibility:public"])
  2. load(
  3. "@io_bazel_rules_go//go:def.bzl",
  4. "go_test",
  5. "go_library",
  6. )
  7. go_test(
  8. name = "go_default_test",
  9. srcs = [
  10. "dao_test.go",
  11. "filter_test.go",
  12. "log_test.go",
  13. "resource_test.go",
  14. "role_test.go",
  15. "search_test.go",
  16. "upload_test.go",
  17. ],
  18. embed = [":go_default_library"],
  19. rundir = ".",
  20. tags = ["automanaged"],
  21. deps = [
  22. "//app/admin/main/aegis/conf:go_default_library",
  23. "//app/admin/main/aegis/model:go_default_library",
  24. "//vendor/github.com/smartystreets/goconvey/convey:go_default_library",
  25. "//vendor/gopkg.in/h2non/gock.v1:go_default_library",
  26. ],
  27. )
  28. go_library(
  29. name = "go_default_library",
  30. srcs = [
  31. "dao.go",
  32. "filter.go",
  33. "log.go",
  34. "resource.go",
  35. "role.go",
  36. "search.go",
  37. "upload.go",
  38. ],
  39. importpath = "go-common/app/admin/main/aegis/dao/http",
  40. tags = ["automanaged"],
  41. visibility = ["//visibility:public"],
  42. deps = [
  43. "//app/admin/main/aegis/conf:go_default_library",
  44. "//app/admin/main/aegis/model:go_default_library",
  45. "//app/admin/main/aegis/model/task:go_default_library",
  46. "//library/database/elastic:go_default_library",
  47. "//library/ecode:go_default_library",
  48. "//library/log:go_default_library",
  49. "//library/net/http/blademaster:go_default_library",
  50. "//library/xstr:go_default_library",
  51. ],
  52. )
  53. filegroup(
  54. name = "package-srcs",
  55. srcs = glob(["**"]),
  56. tags = ["automanaged"],
  57. visibility = ["//visibility:private"],
  58. )
  59. filegroup(
  60. name = "all-srcs",
  61. srcs = [":package-srcs"],
  62. tags = ["automanaged"],
  63. visibility = ["//visibility:public"],
  64. )