BUILD 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  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. "business_config_test.go",
  11. "business_test.go",
  12. "common_test.go",
  13. "dao_test.go",
  14. "direction_test.go",
  15. "flow_resource_test.go",
  16. "flow_test.go",
  17. "net_test.go",
  18. "report_test.go",
  19. "resource_test.go",
  20. "task_config_test.go",
  21. "task_test.go",
  22. "token_test.go",
  23. "transition_test.go",
  24. ],
  25. embed = [":go_default_library"],
  26. tags = ["automanaged"],
  27. deps = [
  28. "//app/admin/main/aegis/conf:go_default_library",
  29. "//app/admin/main/aegis/model/business:go_default_library",
  30. "//app/admin/main/aegis/model/common:go_default_library",
  31. "//app/admin/main/aegis/model/net:go_default_library",
  32. "//app/admin/main/aegis/model/resource:go_default_library",
  33. "//app/admin/main/aegis/model/task:go_default_library",
  34. "//library/ecode:go_default_library",
  35. "//vendor/github.com/jinzhu/gorm:go_default_library",
  36. "//vendor/github.com/smartystreets/goconvey/convey:go_default_library",
  37. ],
  38. )
  39. go_library(
  40. name = "go_default_library",
  41. srcs = [
  42. "business.go",
  43. "business_config.go",
  44. "common.go",
  45. "dao.go",
  46. "direction.go",
  47. "flow.go",
  48. "flow_resource.go",
  49. "net.go",
  50. "report.go",
  51. "resource.go",
  52. "task.go",
  53. "task_config.go",
  54. "token.go",
  55. "transition.go",
  56. ],
  57. importpath = "go-common/app/admin/main/aegis/dao/gorm",
  58. tags = ["automanaged"],
  59. visibility = ["//visibility:public"],
  60. deps = [
  61. "//app/admin/main/aegis/conf:go_default_library",
  62. "//app/admin/main/aegis/model:go_default_library",
  63. "//app/admin/main/aegis/model/business:go_default_library",
  64. "//app/admin/main/aegis/model/net:go_default_library",
  65. "//app/admin/main/aegis/model/resource:go_default_library",
  66. "//app/admin/main/aegis/model/task:go_default_library",
  67. "//library/database/orm:go_default_library",
  68. "//library/ecode:go_default_library",
  69. "//library/log:go_default_library",
  70. "//vendor/github.com/jinzhu/gorm:go_default_library",
  71. ],
  72. )
  73. filegroup(
  74. name = "package-srcs",
  75. srcs = glob(["**"]),
  76. tags = ["automanaged"],
  77. visibility = ["//visibility:private"],
  78. )
  79. filegroup(
  80. name = "all-srcs",
  81. srcs = [":package-srcs"],
  82. tags = ["automanaged"],
  83. visibility = ["//visibility:public"],
  84. )