BUILD 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  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 = [
  10. "client.go",
  11. "default.go",
  12. "file.go",
  13. "helper.go",
  14. "map.go",
  15. "mock.go",
  16. "sven.go",
  17. "toml.go",
  18. "value.go",
  19. ],
  20. importpath = "go-common/library/conf/paladin",
  21. tags = ["automanaged"],
  22. visibility = ["//visibility:public"],
  23. deps = [
  24. "//library/conf/env:go_default_library",
  25. "//library/ecode:go_default_library",
  26. "//library/log:go_default_library",
  27. "//library/net/ip:go_default_library",
  28. "//library/net/netutil:go_default_library",
  29. "//vendor/github.com/BurntSushi/toml:go_default_library",
  30. "//vendor/github.com/naoina/toml:go_default_library",
  31. "//vendor/github.com/pkg/errors:go_default_library",
  32. ],
  33. )
  34. go_test(
  35. name = "go_default_xtest",
  36. srcs = [
  37. "example_test.go",
  38. "file_test.go",
  39. "map_test.go",
  40. "mock_test.go",
  41. ],
  42. tags = ["automanaged"],
  43. deps = [
  44. "//library/conf/paladin:go_default_library",
  45. "//vendor/github.com/naoina/toml:go_default_library",
  46. "//vendor/github.com/stretchr/testify/assert:go_default_library",
  47. ],
  48. )
  49. filegroup(
  50. name = "package-srcs",
  51. srcs = glob(["**"]),
  52. tags = ["automanaged"],
  53. visibility = ["//visibility:private"],
  54. )
  55. filegroup(
  56. name = "all-srcs",
  57. srcs = [":package-srcs"],
  58. tags = ["automanaged"],
  59. visibility = ["//visibility:public"],
  60. )
  61. go_test(
  62. name = "go_default_test",
  63. srcs = [
  64. "sven_test.go",
  65. "value_test.go",
  66. ],
  67. embed = [":go_default_library"],
  68. tags = ["automanaged"],
  69. deps = [
  70. "//library/conf/env:go_default_library",
  71. "//vendor/github.com/naoina/toml:go_default_library",
  72. "//vendor/github.com/stretchr/testify/assert:go_default_library",
  73. ],
  74. )