BUILD 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. package(default_visibility = ["//visibility:public"])
  2. load(
  3. "@io_bazel_rules_go//go:def.bzl",
  4. "go_library",
  5. )
  6. go_library(
  7. name = "go_default_library",
  8. srcs = [
  9. "agent.go",
  10. "dns.go",
  11. "http.go",
  12. "ns_endpoint.go",
  13. ],
  14. importpath = "go-common/app/service/main/bns/agent",
  15. tags = ["automanaged"],
  16. visibility = ["//visibility:public"],
  17. deps = [
  18. "//app/service/main/bns/agent/backend:go_default_library",
  19. "//app/service/main/bns/conf:go_default_library",
  20. "//app/service/main/bns/lib/resolvconf:go_default_library",
  21. "//app/service/main/bns/lib/shuffle:go_default_library",
  22. "//library/conf/env:go_default_library",
  23. "//library/log:go_default_library",
  24. "//library/stat/prom:go_default_library",
  25. "//vendor/github.com/miekg/dns:go_default_library",
  26. "//vendor/github.com/prometheus/client_golang/prometheus/promhttp:go_default_library",
  27. ],
  28. )
  29. filegroup(
  30. name = "package-srcs",
  31. srcs = glob(["**"]),
  32. tags = ["automanaged"],
  33. visibility = ["//visibility:private"],
  34. )
  35. filegroup(
  36. name = "all-srcs",
  37. srcs = [
  38. ":package-srcs",
  39. "//app/service/main/bns/agent/backend:all-srcs",
  40. ],
  41. tags = ["automanaged"],
  42. visibility = ["//visibility:public"],
  43. )