BUILD 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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. "archive_recheck.go",
  12. "archive_state.go",
  13. "config.go",
  14. "flow.go",
  15. "forbid.go",
  16. "history.go",
  17. "mosaic.go",
  18. "oper.go",
  19. "param.go",
  20. "staff.go",
  21. "stats.go",
  22. "task.go",
  23. "task_qa_video.go",
  24. "video.go",
  25. "watermark.go",
  26. ],
  27. importpath = "go-common/app/admin/main/videoup/model/archive",
  28. tags = ["automanaged"],
  29. visibility = ["//visibility:public"],
  30. deps = [
  31. "//app/admin/main/videoup/model/message:go_default_library",
  32. "//app/admin/main/videoup/model/utils:go_default_library",
  33. "//library/log:go_default_library",
  34. "//library/time:go_default_library",
  35. "//library/xstr:go_default_library",
  36. ],
  37. )
  38. filegroup(
  39. name = "package-srcs",
  40. srcs = glob(["**"]),
  41. tags = ["automanaged"],
  42. visibility = ["//visibility:private"],
  43. )
  44. filegroup(
  45. name = "all-srcs",
  46. srcs = [":package-srcs"],
  47. tags = ["automanaged"],
  48. visibility = ["//visibility:public"],
  49. )
  50. go_test(
  51. name = "go_default_test",
  52. srcs = [
  53. "archive_test.go",
  54. "history_test.go",
  55. ],
  56. embed = [":go_default_library"],
  57. rundir = ".",
  58. tags = ["automanaged"],
  59. deps = ["//vendor/github.com/smartystreets/goconvey/convey:go_default_library"],
  60. )