BUILD 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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 = ["service_test.go"],
  10. embed = [":go_default_library"],
  11. rundir = ".",
  12. tags = ["automanaged"],
  13. deps = [
  14. "//app/interface/main/creative/conf:go_default_library",
  15. "//app/interface/main/creative/model/academy:go_default_library",
  16. "//app/interface/main/creative/service:go_default_library",
  17. "//vendor/github.com/smartystreets/goconvey/convey:go_default_library",
  18. ],
  19. )
  20. go_library(
  21. name = "go_default_library",
  22. srcs = [
  23. "academy.go",
  24. "h5.go",
  25. "service.go",
  26. "skill.go",
  27. ],
  28. importpath = "go-common/app/interface/main/creative/service/academy",
  29. tags = ["automanaged"],
  30. visibility = ["//visibility:public"],
  31. deps = [
  32. "//app/interface/main/creative/conf:go_default_library",
  33. "//app/interface/main/creative/dao/academy:go_default_library",
  34. "//app/interface/main/creative/dao/archive:go_default_library",
  35. "//app/interface/main/creative/dao/article:go_default_library",
  36. "//app/interface/main/creative/dao/resource:go_default_library",
  37. "//app/interface/main/creative/dao/tool:go_default_library",
  38. "//app/interface/main/creative/model/academy:go_default_library",
  39. "//app/interface/main/creative/model/newcomer:go_default_library",
  40. "//app/interface/main/creative/service:go_default_library",
  41. "//app/interface/openplatform/article/model:go_default_library",
  42. "//app/service/main/archive/api:go_default_library",
  43. "//library/ecode:go_default_library",
  44. "//library/log:go_default_library",
  45. "//library/sync/errgroup:go_default_library",
  46. "//library/time:go_default_library",
  47. "//vendor/github.com/davecgh/go-spew/spew:go_default_library",
  48. ],
  49. )
  50. filegroup(
  51. name = "package-srcs",
  52. srcs = glob(["**"]),
  53. tags = ["automanaged"],
  54. visibility = ["//visibility:private"],
  55. )
  56. filegroup(
  57. name = "all-srcs",
  58. srcs = [":package-srcs"],
  59. tags = ["automanaged"],
  60. visibility = ["//visibility:public"],
  61. )