BUILD 1.4 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 = ["dao.go"],
  10. importpath = "go-common/app/interface/main/creative/dao/resource",
  11. tags = ["automanaged"],
  12. visibility = ["//visibility:public"],
  13. deps = [
  14. "//app/interface/main/creative/conf:go_default_library",
  15. "//app/service/main/resource/model:go_default_library",
  16. "//app/service/main/resource/rpc/client:go_default_library",
  17. "//library/log:go_default_library",
  18. ],
  19. )
  20. filegroup(
  21. name = "package-srcs",
  22. srcs = glob(["**"]),
  23. tags = ["automanaged"],
  24. visibility = ["//visibility:private"],
  25. )
  26. filegroup(
  27. name = "all-srcs",
  28. srcs = [":package-srcs"],
  29. tags = ["automanaged"],
  30. visibility = ["//visibility:public"],
  31. )
  32. go_test(
  33. name = "go_default_test",
  34. srcs = ["dao_test.go"],
  35. embed = [":go_default_library"],
  36. rundir = ".",
  37. tags = ["automanaged"],
  38. deps = [
  39. "//app/interface/main/creative/conf:go_default_library",
  40. "//app/service/main/resource/model:go_default_library",
  41. "//app/service/main/resource/rpc/client:go_default_library",
  42. "//library/ecode:go_default_library",
  43. "//vendor/github.com/bouk/monkey:go_default_library",
  44. "//vendor/github.com/smartystreets/goconvey/convey:go_default_library",
  45. ],
  46. )