BUILD 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. load(
  2. "@io_bazel_rules_go//go:def.bzl",
  3. "go_library",
  4. "go_test",
  5. )
  6. package(default_visibility = ["//visibility:public"])
  7. filegroup(
  8. name = "package-srcs",
  9. srcs = glob(["**"]),
  10. tags = ["automanaged"],
  11. visibility = ["//visibility:private"],
  12. )
  13. filegroup(
  14. name = "all-srcs",
  15. srcs = [
  16. ":package-srcs",
  17. "//library/conf/dsn:all-srcs",
  18. "//library/conf/env:all-srcs",
  19. "//library/conf/flagvar:all-srcs",
  20. "//library/conf/paladin:all-srcs",
  21. ],
  22. tags = ["automanaged"],
  23. )
  24. go_library(
  25. name = "go_default_library",
  26. srcs = [
  27. "client.go",
  28. "client_v2.go",
  29. ],
  30. importpath = "go-common/library/conf",
  31. tags = ["automanaged"],
  32. deps = [
  33. "//library/conf/env:go_default_library",
  34. "//library/ecode:go_default_library",
  35. "//library/log:go_default_library",
  36. ],
  37. )
  38. go_test(
  39. name = "go_default_test",
  40. srcs = [
  41. "client_test.go",
  42. "client_v2_test.go",
  43. ],
  44. embed = [":go_default_library"],
  45. rundir = ".",
  46. tags = ["automanaged"],
  47. )