BUILD.bazel 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. load(
  2. "@io_bazel_rules_go//go:def.bzl",
  3. "go_library",
  4. "go_test",
  5. )
  6. go_library(
  7. name = "go_default_library",
  8. srcs = ["conf.go"],
  9. importpath = "go-common/app/tool/saga/conf",
  10. tags = ["automanaged"],
  11. visibility = ["//visibility:public"],
  12. deps = [
  13. "//app/tool/saga/model:go_default_library",
  14. "//library/cache/memcache:go_default_library",
  15. "//library/cache/redis:go_default_library",
  16. "//library/conf:go_default_library",
  17. "//library/database/hbase.v2:go_default_library",
  18. "//library/database/orm:go_default_library",
  19. "//library/log:go_default_library",
  20. "//library/net/http/blademaster:go_default_library",
  21. "//library/net/trace:go_default_library",
  22. "//library/time:go_default_library",
  23. "//vendor/github.com/BurntSushi/toml:go_default_library",
  24. "//vendor/github.com/pkg/errors:go_default_library",
  25. ],
  26. )
  27. go_test(
  28. name = "go_default_test",
  29. srcs = ["conf_test.go"],
  30. embed = [":go_default_library"],
  31. rundir = ".",
  32. tags = ["automanaged"],
  33. deps = ["//vendor/github.com/smartystreets/goconvey/convey:go_default_library"],
  34. )
  35. filegroup(
  36. name = "package-srcs",
  37. srcs = glob(["**"]),
  38. tags = ["automanaged"],
  39. visibility = ["//visibility:private"],
  40. )
  41. filegroup(
  42. name = "all-srcs",
  43. srcs = [":package-srcs"],
  44. tags = ["automanaged"],
  45. visibility = ["//visibility:public"],
  46. )