BUILD 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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. "batch_param.go",
  11. "model.go",
  12. "xints.go",
  13. ],
  14. importpath = "go-common/app/interface/main/push-archive/model",
  15. tags = ["automanaged"],
  16. visibility = ["//visibility:public"],
  17. deps = [
  18. "//app/service/main/archive/api:go_default_library",
  19. "//app/service/main/relation/model:go_default_library",
  20. "//library/log:go_default_library",
  21. "//library/xstr:go_default_library",
  22. ],
  23. )
  24. filegroup(
  25. name = "package-srcs",
  26. srcs = glob(["**"]),
  27. tags = ["automanaged"],
  28. visibility = ["//visibility:private"],
  29. )
  30. filegroup(
  31. name = "all-srcs",
  32. srcs = [":package-srcs"],
  33. tags = ["automanaged"],
  34. visibility = ["//visibility:public"],
  35. )
  36. go_test(
  37. name = "go_default_test",
  38. srcs = [
  39. "batch_param_test.go",
  40. "xints_test.go",
  41. ],
  42. embed = [":go_default_library"],
  43. rundir = ".",
  44. tags = ["automanaged"],
  45. deps = ["//vendor/github.com/smartystreets/goconvey/convey:go_default_library"],
  46. )