BUILD.bazel 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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 = ["server.go"],
  9. importpath = "go-common/library/net/http",
  10. tags = ["automanaged"],
  11. visibility = ["//visibility:public"],
  12. deps = [
  13. "//library/conf/env:go_default_library",
  14. "//library/log:go_default_library",
  15. "//library/net/http/blademaster:go_default_library",
  16. "//library/time:go_default_library",
  17. "//vendor/github.com/pkg/errors:go_default_library",
  18. ],
  19. )
  20. go_test(
  21. name = "go_default_test",
  22. srcs = ["server_test.go"],
  23. embed = [":go_default_library"],
  24. rundir = ".",
  25. tags = ["automanaged"],
  26. deps = [
  27. "//library/net/http/blademaster:go_default_library",
  28. "//library/time:go_default_library",
  29. ],
  30. )
  31. filegroup(
  32. name = "package-srcs",
  33. srcs = glob(["**"]),
  34. tags = ["automanaged"],
  35. visibility = ["//visibility:private"],
  36. )
  37. filegroup(
  38. name = "all-srcs",
  39. srcs = [
  40. ":package-srcs",
  41. "//library/net/http/blademaster:all-srcs",
  42. ],
  43. tags = ["automanaged"],
  44. visibility = ["//visibility:public"],
  45. )