BUILD.bazel 813 B

123456789101112131415161718192021222324252627282930313233343536373839
  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 = ["errgroup.go"],
  9. importpath = "go-common/library/sync/errgroup",
  10. tags = ["automanaged"],
  11. visibility = ["//visibility:public"],
  12. )
  13. go_test(
  14. name = "go_default_test",
  15. srcs = [
  16. "errgroup_test.go",
  17. "example_test.go",
  18. ],
  19. embed = [":go_default_library"],
  20. rundir = ".",
  21. tags = ["automanaged"],
  22. deps = ["@org_golang_x_net//context:go_default_library"],
  23. )
  24. filegroup(
  25. name = "package-srcs",
  26. srcs = glob(["**"]),
  27. tags = ["automanaged"],
  28. visibility = ["//visibility:private"],
  29. )
  30. filegroup(
  31. name = "all-srcs",
  32. srcs = [":package-srcs"],
  33. tags = ["automanaged"],
  34. visibility = ["//visibility:public"],
  35. )