BUILD.bazel 617 B

123456789101112131415161718192021222324
  1. load("@io_bazel_rules_go//go:def.bzl", "go_library")
  2. go_library(
  3. name = "go_default_library",
  4. srcs = ["errgroup.go"],
  5. importmap = "go-common/vendor/golang.org/x/sync/errgroup",
  6. importpath = "golang.org/x/sync/errgroup",
  7. visibility = ["//visibility:public"],
  8. deps = ["@org_golang_x_net//context:go_default_library"],
  9. )
  10. filegroup(
  11. name = "package-srcs",
  12. srcs = glob(["**"]),
  13. tags = ["automanaged"],
  14. visibility = ["//visibility:private"],
  15. )
  16. filegroup(
  17. name = "all-srcs",
  18. srcs = [":package-srcs"],
  19. tags = ["automanaged"],
  20. visibility = ["//visibility:public"],
  21. )