BUILD 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. load(
  2. "@io_bazel_rules_go//go:def.bzl",
  3. "go_library",
  4. "go_test",
  5. )
  6. go_library(
  7. name = "go_default_library",
  8. srcs = [
  9. "appeal.go",
  10. "expire.go",
  11. "notify.go",
  12. "queue.go",
  13. "service.go",
  14. "workflow.go",
  15. ],
  16. importpath = "go-common/app/job/main/workflow/service",
  17. tags = ["automanaged"],
  18. visibility = ["//visibility:public"],
  19. deps = [
  20. "//app/admin/main/workflow/model/param:go_default_library",
  21. "//app/job/main/workflow/conf:go_default_library",
  22. "//app/job/main/workflow/dao:go_default_library",
  23. "//app/job/main/workflow/model:go_default_library",
  24. "//app/service/main/workflow/model:go_default_library",
  25. "//library/database/elastic:go_default_library",
  26. "//library/ecode:go_default_library",
  27. "//library/log:go_default_library",
  28. "//library/sync/errgroup.v2:go_default_library",
  29. "//library/sync/pipeline/fanout:go_default_library",
  30. ],
  31. )
  32. filegroup(
  33. name = "package-srcs",
  34. srcs = glob(["**"]),
  35. tags = ["automanaged"],
  36. visibility = ["//visibility:private"],
  37. )
  38. filegroup(
  39. name = "all-srcs",
  40. srcs = [":package-srcs"],
  41. tags = ["automanaged"],
  42. visibility = ["//visibility:public"],
  43. )
  44. go_test(
  45. name = "go_default_test",
  46. srcs = ["service_test.go"],
  47. embed = [":go_default_library"],
  48. rundir = ".",
  49. tags = ["automanaged"],
  50. deps = [
  51. "//app/job/main/workflow/conf:go_default_library",
  52. "//vendor/github.com/smartystreets/goconvey/convey:go_default_library",
  53. ],
  54. )