BUILD 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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. "archive.go",
  11. "contest.go",
  12. "game.go",
  13. "match.go",
  14. "match_active.go",
  15. "match_detail.go",
  16. "season.go",
  17. "service.go",
  18. "tag.go",
  19. "team.go",
  20. "tree.go",
  21. ],
  22. importpath = "go-common/app/admin/main/esports/service",
  23. tags = ["automanaged"],
  24. visibility = ["//visibility:public"],
  25. deps = [
  26. "//app/admin/main/esports/conf:go_default_library",
  27. "//app/admin/main/esports/dao:go_default_library",
  28. "//app/admin/main/esports/model:go_default_library",
  29. "//app/service/main/account/api:go_default_library",
  30. "//app/service/main/archive/api:go_default_library",
  31. "//library/ecode:go_default_library",
  32. "//library/log:go_default_library",
  33. "//library/net/metadata:go_default_library",
  34. "//library/sync/errgroup:go_default_library",
  35. "//library/xstr:go_default_library",
  36. "//vendor/github.com/jinzhu/gorm:go_default_library",
  37. "//vendor/github.com/pkg/errors:go_default_library",
  38. ],
  39. )
  40. filegroup(
  41. name = "package-srcs",
  42. srcs = glob(["**"]),
  43. tags = ["automanaged"],
  44. visibility = ["//visibility:private"],
  45. )
  46. filegroup(
  47. name = "all-srcs",
  48. srcs = [":package-srcs"],
  49. tags = ["automanaged"],
  50. visibility = ["//visibility:public"],
  51. )
  52. go_test(
  53. name = "go_default_test",
  54. srcs = [
  55. "archive_test.go",
  56. "game_test.go",
  57. "match_test.go",
  58. "service_test.go",
  59. "team_test.go",
  60. ],
  61. embed = [":go_default_library"],
  62. rundir = ".",
  63. tags = ["automanaged"],
  64. deps = [
  65. "//app/admin/main/esports/conf:go_default_library",
  66. "//app/admin/main/esports/model:go_default_library",
  67. "//vendor/github.com/smartystreets/goconvey/convey:go_default_library",
  68. ],
  69. )