BUILD 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. package(default_visibility = ["//visibility:public"])
  2. load(
  3. "@io_bazel_rules_go//go:def.bzl",
  4. "go_binary",
  5. "go_library",
  6. )
  7. go_binary(
  8. name = "cmd",
  9. embed = [":go_default_library"],
  10. tags = ["automanaged"],
  11. )
  12. go_library(
  13. name = "go_default_library",
  14. srcs = ["main.go"],
  15. importpath = "go-common/app/service/ops/log-agent/cmd",
  16. tags = ["automanaged"],
  17. visibility = ["//visibility:public"],
  18. deps = [
  19. "//app/service/ops/log-agent/conf:go_default_library",
  20. "//app/service/ops/log-agent/pipeline:go_default_library",
  21. "//app/service/ops/log-agent/pipeline/dockerlogcollector:go_default_library",
  22. "//app/service/ops/log-agent/pipeline/hostlogcollector:go_default_library",
  23. "//app/service/ops/log-agent/pkg/flowmonitor:go_default_library",
  24. "//app/service/ops/log-agent/pkg/httpstream:go_default_library",
  25. "//app/service/ops/log-agent/pkg/lancermonitor:go_default_library",
  26. "//app/service/ops/log-agent/pkg/lancerroute:go_default_library",
  27. "//app/service/ops/log-agent/pkg/limit:go_default_library",
  28. "//library/conf/env:go_default_library",
  29. "//library/log:go_default_library",
  30. "//library/naming:go_default_library",
  31. "//library/naming/discovery:go_default_library",
  32. "//library/net/ip:go_default_library",
  33. ],
  34. )
  35. filegroup(
  36. name = "package-srcs",
  37. srcs = glob(["**"]),
  38. tags = ["automanaged"],
  39. visibility = ["//visibility:private"],
  40. )
  41. filegroup(
  42. name = "all-srcs",
  43. srcs = [":package-srcs"],
  44. tags = ["automanaged"],
  45. visibility = ["//visibility:public"],
  46. )