BUILD 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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. "creditlog.go",
  11. "score_section_history.go",
  12. "up_base_info.go",
  13. "up_score_history.go",
  14. ],
  15. importmap = "go-common/app/service/main/upcredit/model/upcrmmodel",
  16. importpath = "go-common/app/service/main/upcredit/model/upcrmmodel",
  17. tags = ["automanaged"],
  18. visibility = ["//visibility:public"],
  19. deps = ["//library/time:go_default_library"],
  20. )
  21. filegroup(
  22. name = "package-srcs",
  23. srcs = glob(["**"]),
  24. tags = ["automanaged"],
  25. visibility = ["//visibility:private"],
  26. )
  27. filegroup(
  28. name = "all-srcs",
  29. srcs = [":package-srcs"],
  30. tags = ["automanaged"],
  31. visibility = ["//visibility:public"],
  32. )
  33. go_test(
  34. name = "go_default_test",
  35. srcs = ["creditlog_test.go"],
  36. embed = [":go_default_library"],
  37. rundir = ".",
  38. tags = ["automanaged"],
  39. deps = [
  40. "//library/time:go_default_library",
  41. "//vendor/github.com/smartystreets/goconvey/convey:go_default_library",
  42. ],
  43. )