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. "add_ver_test.go",
  10. "publish_test.go",
  11. "service_test.go",
  12. "upbfs_test.go",
  13. ],
  14. embed = [":go_default_library"],
  15. rundir = ".",
  16. tags = ["automanaged"],
  17. deps = [
  18. "//app/admin/main/appstatic/conf:go_default_library",
  19. "//app/admin/main/appstatic/model:go_default_library",
  20. "//library/time:go_default_library",
  21. "//vendor/github.com/smartystreets/goconvey/convey:go_default_library",
  22. ],
  23. )
  24. go_library(
  25. name = "go_default_library",
  26. srcs = [
  27. "add_ver.go",
  28. "publish.go",
  29. "push.go",
  30. "service.go",
  31. "upbfs.go",
  32. ],
  33. importpath = "go-common/app/admin/main/appstatic/service",
  34. tags = ["automanaged"],
  35. visibility = ["//visibility:public"],
  36. deps = [
  37. "//app/admin/main/appstatic/conf:go_default_library",
  38. "//app/admin/main/appstatic/dao:go_default_library",
  39. "//app/admin/main/appstatic/model:go_default_library",
  40. "//library/log: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. )