BUILD 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  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. "api_test.go",
  11. "dao_test.go",
  12. "redis_test.go",
  13. "type_test.go",
  14. ],
  15. embed = [":go_default_library"],
  16. rundir = ".",
  17. tags = ["automanaged"],
  18. deps = [
  19. "//app/interface/main/videoup/conf:go_default_library",
  20. "//app/interface/main/videoup/model/archive:go_default_library",
  21. "//app/service/main/up/api/v1:go_default_library",
  22. "//library/ecode:go_default_library",
  23. "//vendor/github.com/golang/mock/gomock: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. "api.go",
  32. "dao.go",
  33. "redis.go",
  34. "type.go",
  35. ],
  36. importpath = "go-common/app/interface/main/videoup/dao/archive",
  37. tags = ["automanaged"],
  38. visibility = ["//visibility:public"],
  39. deps = [
  40. "//app/interface/main/creative/dao/tool:go_default_library",
  41. "//app/interface/main/videoup/conf:go_default_library",
  42. "//app/interface/main/videoup/model/archive:go_default_library",
  43. "//app/interface/main/videoup/model/porder:go_default_library",
  44. "//app/service/main/up/api/v1:go_default_library",
  45. "//library/cache/redis:go_default_library",
  46. "//library/ecode:go_default_library",
  47. "//library/log:go_default_library",
  48. "//library/net/http/blademaster:go_default_library",
  49. "//library/sync/errgroup:go_default_library",
  50. ],
  51. )
  52. filegroup(
  53. name = "package-srcs",
  54. srcs = glob(["**"]),
  55. tags = ["automanaged"],
  56. visibility = ["//visibility:private"],
  57. )
  58. filegroup(
  59. name = "all-srcs",
  60. srcs = [":package-srcs"],
  61. tags = ["automanaged"],
  62. visibility = ["//visibility:public"],
  63. )