BUILD 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. load(
  2. "@io_bazel_rules_go//go:def.bzl",
  3. "go_test",
  4. "go_library",
  5. )
  6. package(default_visibility = ["//visibility:public"])
  7. filegroup(
  8. name = "package-srcs",
  9. srcs = glob(["**"]),
  10. tags = ["automanaged"],
  11. visibility = ["//visibility:private"],
  12. )
  13. filegroup(
  14. name = "all-srcs",
  15. srcs = [":package-srcs"],
  16. tags = ["automanaged"],
  17. visibility = ["//visibility:public"],
  18. )
  19. go_test(
  20. name = "go_default_test",
  21. srcs = [
  22. "app_auth_test.go",
  23. "dao_test.go",
  24. "mysql_test.go",
  25. "tree_test.go",
  26. ],
  27. embed = [":go_default_library"],
  28. rundir = ".",
  29. tags = ["automanaged"],
  30. deps = [
  31. "//app/service/main/msm/conf:go_default_library",
  32. "//vendor/github.com/smartystreets/goconvey/convey:go_default_library",
  33. ],
  34. )
  35. go_library(
  36. name = "go_default_library",
  37. srcs = [
  38. "app_auth.go",
  39. "dao.go",
  40. "mysql.go",
  41. "tree.go",
  42. ],
  43. importpath = "go-common/app/service/main/msm/dao",
  44. tags = ["automanaged"],
  45. deps = [
  46. "//app/service/main/msm/conf:go_default_library",
  47. "//app/service/main/msm/model:go_default_library",
  48. "//library/conf/env:go_default_library",
  49. "//library/database/sql:go_default_library",
  50. "//library/log:go_default_library",
  51. "//library/net/http/blademaster:go_default_library",
  52. "//library/time:go_default_library",
  53. ],
  54. )