BUILD 1.3 KB

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