BUILD 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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. "aegis_resource.go",
  11. "archive_video_relation.go",
  12. "avr_archive.go",
  13. "dm_date.go",
  14. "log.go",
  15. ],
  16. importpath = "go-common/app/job/main/search/dao/business",
  17. tags = ["automanaged"],
  18. visibility = ["//visibility:public"],
  19. deps = [
  20. "//app/job/main/search/conf:go_default_library",
  21. "//app/job/main/search/dao:go_default_library",
  22. "//app/job/main/search/model:go_default_library",
  23. "//library/database/sql:go_default_library",
  24. "//library/log:go_default_library",
  25. "//library/log/infoc:go_default_library",
  26. "//library/queue/databus:go_default_library",
  27. "//library/xstr:go_default_library",
  28. "//vendor/gopkg.in/olivere/elastic.v5:go_default_library",
  29. ],
  30. )
  31. filegroup(
  32. name = "package-srcs",
  33. srcs = glob(["**"]),
  34. tags = ["automanaged"],
  35. visibility = ["//visibility:private"],
  36. )
  37. filegroup(
  38. name = "all-srcs",
  39. srcs = [":package-srcs"],
  40. tags = ["automanaged"],
  41. visibility = ["//visibility:public"],
  42. )
  43. go_test(
  44. name = "go_default_test",
  45. srcs = ["business_test.go"],
  46. embed = [":go_default_library"],
  47. rundir = ".",
  48. tags = ["automanaged"],
  49. deps = [
  50. "//app/job/main/search/conf:go_default_library",
  51. "//app/job/main/search/dao:go_default_library",
  52. "//vendor/github.com/smartystreets/goconvey/convey:go_default_library",
  53. ],
  54. )