BUILD 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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. "service.go",
  11. "uparchiveinfo.go",
  12. "viewer.go",
  13. ],
  14. importpath = "go-common/app/admin/main/up/service/data",
  15. tags = ["automanaged"],
  16. visibility = ["//visibility:public"],
  17. deps = [
  18. "//app/admin/main/up/conf:go_default_library",
  19. "//app/admin/main/up/dao/data:go_default_library",
  20. "//app/admin/main/up/dao/tag:go_default_library",
  21. "//app/admin/main/up/model/datamodel:go_default_library",
  22. "//app/admin/main/up/service/cache:go_default_library",
  23. "//app/admin/main/up/util:go_default_library",
  24. "//app/interface/main/creative/model/tag:go_default_library",
  25. "//library/log:go_default_library",
  26. "//library/sync/errgroup:go_default_library",
  27. ],
  28. )
  29. filegroup(
  30. name = "package-srcs",
  31. srcs = glob(["**"]),
  32. tags = ["automanaged"],
  33. visibility = ["//visibility:private"],
  34. )
  35. filegroup(
  36. name = "all-srcs",
  37. srcs = [":package-srcs"],
  38. tags = ["automanaged"],
  39. visibility = ["//visibility:public"],
  40. )
  41. go_test(
  42. name = "go_default_test",
  43. srcs = [
  44. "service_test.go",
  45. "uparchiveinfo_test.go",
  46. "viewer_test.go",
  47. ],
  48. embed = [":go_default_library"],
  49. tags = ["automanaged"],
  50. deps = [
  51. "//app/admin/main/up/conf:go_default_library",
  52. "//app/admin/main/up/model/datamodel:go_default_library",
  53. "//vendor/github.com/smartystreets/goconvey/convey:go_default_library",
  54. ],
  55. )