BUILD 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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. "dao.go",
  11. "msg.go",
  12. ],
  13. importpath = "go-common/app/admin/main/mcn/dao/msg",
  14. tags = ["automanaged"],
  15. visibility = ["//visibility:public"],
  16. deps = [
  17. "//app/admin/main/mcn/conf:go_default_library",
  18. "//library/ecode:go_default_library",
  19. "//library/net/http/blademaster:go_default_library",
  20. "//library/xstr:go_default_library",
  21. "//vendor/github.com/pkg/errors: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. "dao_test.go",
  40. "msg_test.go",
  41. ],
  42. embed = [":go_default_library"],
  43. rundir = ".",
  44. tags = ["automanaged"],
  45. deps = [
  46. "//app/admin/main/mcn/conf:go_default_library",
  47. "//vendor/github.com/smartystreets/goconvey/convey:go_default_library",
  48. "//vendor/gopkg.in/h2non/gock.v1:go_default_library",
  49. ],
  50. )