BUILD 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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. "upload_test.go",
  11. "utils_test.go",
  12. ],
  13. embed = [":go_default_library"],
  14. rundir = ".",
  15. tags = ["automanaged"],
  16. deps = [
  17. "//app/admin/main/up/conf:go_default_library",
  18. "//vendor/github.com/smartystreets/goconvey/convey:go_default_library",
  19. ],
  20. )
  21. go_library(
  22. name = "go_default_library",
  23. srcs = [
  24. "upload.go",
  25. "utils.go",
  26. ],
  27. importmap = "go-common/app/admin/main/up/dao",
  28. importpath = "go-common/app/admin/main/up/dao",
  29. tags = ["automanaged"],
  30. visibility = ["//visibility:public"],
  31. deps = [
  32. "//app/admin/main/up/conf:go_default_library",
  33. "//library/log:go_default_library",
  34. ],
  35. )
  36. filegroup(
  37. name = "package-srcs",
  38. srcs = glob(["**"]),
  39. tags = ["automanaged"],
  40. visibility = ["//visibility:private"],
  41. )
  42. filegroup(
  43. name = "all-srcs",
  44. srcs = [
  45. ":package-srcs",
  46. "//app/admin/main/up/dao/data:all-srcs",
  47. "//app/admin/main/up/dao/email:all-srcs",
  48. "//app/admin/main/up/dao/global:all-srcs",
  49. "//app/admin/main/up/dao/manager:all-srcs",
  50. "//app/admin/main/up/dao/tag:all-srcs",
  51. "//app/admin/main/up/dao/upcrm:all-srcs",
  52. ],
  53. tags = ["automanaged"],
  54. visibility = ["//visibility:public"],
  55. )