BUILD 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. package(default_visibility = ["//visibility:public"])
  2. load(
  3. "@io_bazel_rules_go//go:def.bzl",
  4. "go_test",
  5. "go_library",
  6. )
  7. go_test(
  8. name = "go_default_test",
  9. srcs = [
  10. "app_test.go",
  11. "build_test.go",
  12. "common_test.go",
  13. "conf_svr_test.go",
  14. "config_test.go",
  15. "tag_test.go",
  16. ],
  17. embed = [":go_default_library"],
  18. rundir = ".",
  19. tags = ["automanaged"],
  20. deps = [
  21. "//app/admin/main/config/conf:go_default_library",
  22. "//app/admin/main/config/model:go_default_library",
  23. "//vendor/github.com/BurntSushi/toml:go_default_library",
  24. "//vendor/github.com/smartystreets/goconvey/convey:go_default_library",
  25. ],
  26. )
  27. go_library(
  28. name = "go_default_library",
  29. srcs = [
  30. "apm.go",
  31. "app.go",
  32. "build.go",
  33. "common.go",
  34. "conf_svr.go",
  35. "config.go",
  36. "force.go",
  37. "service.go",
  38. "tag.go",
  39. "team.go",
  40. ],
  41. importpath = "go-common/app/admin/main/config/service",
  42. tags = ["automanaged"],
  43. visibility = ["//visibility:public"],
  44. deps = [
  45. "//app/admin/main/config/conf:go_default_library",
  46. "//app/admin/main/config/dao:go_default_library",
  47. "//app/admin/main/config/model:go_default_library",
  48. "//app/admin/main/config/pkg/lint:go_default_library",
  49. "//app/infra/config/model:go_default_library",
  50. "//app/infra/config/rpc/client:go_default_library",
  51. "//library/database/sql:go_default_library",
  52. "//library/ecode:go_default_library",
  53. "//library/log:go_default_library",
  54. "//vendor/github.com/jinzhu/gorm:go_default_library",
  55. "//vendor/github.com/satori/go.uuid:go_default_library",
  56. ],
  57. )
  58. filegroup(
  59. name = "package-srcs",
  60. srcs = glob(["**"]),
  61. tags = ["automanaged"],
  62. visibility = ["//visibility:private"],
  63. )
  64. filegroup(
  65. name = "all-srcs",
  66. srcs = [":package-srcs"],
  67. tags = ["automanaged"],
  68. visibility = ["//visibility:public"],
  69. )