BUILD.bazel 971 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  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 = ["infoc.go"],
  9. importpath = "go-common/library/log/infoc",
  10. tags = ["automanaged"],
  11. visibility = ["//visibility:public"],
  12. deps = [
  13. "//library/log:go_default_library",
  14. "//library/net/metadata:go_default_library",
  15. "//library/net/netutil:go_default_library",
  16. "//library/time:go_default_library",
  17. ],
  18. )
  19. go_test(
  20. name = "go_default_test",
  21. srcs = ["infoc_test.go"],
  22. embed = [":go_default_library"],
  23. rundir = ".",
  24. tags = ["automanaged"],
  25. deps = ["//library/net/metadata:go_default_library"],
  26. )
  27. filegroup(
  28. name = "package-srcs",
  29. srcs = glob(["**"]),
  30. tags = ["automanaged"],
  31. visibility = ["//visibility:private"],
  32. )
  33. filegroup(
  34. name = "all-srcs",
  35. srcs = [":package-srcs"],
  36. tags = ["automanaged"],
  37. visibility = ["//visibility:public"],
  38. )