BUILD 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. load(
  2. "@io_bazel_rules_go//go:def.bzl",
  3. "go_test",
  4. "go_library",
  5. )
  6. go_test(
  7. name = "go_default_test",
  8. srcs = [
  9. "dao_test.go",
  10. "redis_test.go",
  11. "up_nas_test.go",
  12. "upbfs_test.go",
  13. ],
  14. embed = [":go_default_library"],
  15. tags = ["automanaged"],
  16. deps = [
  17. "//app/admin/main/appstatic/conf:go_default_library",
  18. "//vendor/github.com/smartystreets/goconvey/convey:go_default_library",
  19. "//vendor/gopkg.in/h2non/gock.v1:go_default_library",
  20. ],
  21. )
  22. go_library(
  23. name = "go_default_library",
  24. srcs = [
  25. "dao.go",
  26. "redis.go",
  27. "up_nas.go",
  28. "upbfs.go",
  29. ],
  30. importpath = "go-common/app/admin/main/appstatic/dao",
  31. tags = ["automanaged"],
  32. visibility = ["//visibility:public"],
  33. deps = [
  34. "//app/admin/main/appstatic/conf:go_default_library",
  35. "//app/admin/main/appstatic/model:go_default_library",
  36. "//library/cache/redis:go_default_library",
  37. "//library/database/orm:go_default_library",
  38. "//library/ecode:go_default_library",
  39. "//library/log:go_default_library",
  40. "//library/net/http/blademaster:go_default_library",
  41. "//vendor/github.com/jinzhu/gorm:go_default_library",
  42. ],
  43. )
  44. filegroup(
  45. name = "package-srcs",
  46. srcs = glob(["**"]),
  47. tags = ["automanaged"],
  48. visibility = ["//visibility:private"],
  49. )
  50. filegroup(
  51. name = "all-srcs",
  52. srcs = [":package-srcs"],
  53. tags = ["automanaged"],
  54. visibility = ["//visibility:public"],
  55. )