BUILD 1.7 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 = [
  10. "archive_test.go",
  11. "dao_test.go",
  12. "feedback_test.go",
  13. "search_test.go",
  14. "skill_test.go",
  15. "tag_test.go",
  16. ],
  17. embed = [":go_default_library"],
  18. rundir = ".",
  19. tags = ["automanaged"],
  20. deps = [
  21. "//app/interface/main/creative/conf:go_default_library",
  22. "//app/interface/main/creative/model/academy:go_default_library",
  23. "//vendor/github.com/smartystreets/goconvey/convey:go_default_library",
  24. ],
  25. )
  26. go_library(
  27. name = "go_default_library",
  28. srcs = [
  29. "archive.go",
  30. "dao.go",
  31. "feedback.go",
  32. "search.go",
  33. "skill.go",
  34. "tag.go",
  35. ],
  36. importpath = "go-common/app/interface/main/creative/dao/academy",
  37. tags = ["automanaged"],
  38. visibility = ["//visibility:public"],
  39. deps = [
  40. "//app/interface/main/creative/conf:go_default_library",
  41. "//app/interface/main/creative/dao/tool:go_default_library",
  42. "//app/interface/main/creative/model/academy:go_default_library",
  43. "//library/database/elastic:go_default_library",
  44. "//library/database/sql:go_default_library",
  45. "//library/ecode:go_default_library",
  46. "//library/log:go_default_library",
  47. "//library/xstr: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. )