BUILD 1.1 KB

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