BUILD.bazel 886 B

123456789101112131415161718192021222324252627282930313233
  1. load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_binary")
  2. go_library(
  3. name = "go_default_library",
  4. srcs = ["bulk_insert.go"],
  5. importmap = "go-common/vendor/gopkg.in/olivere/elastic.v5/recipes/bulk_insert",
  6. importpath = "gopkg.in/olivere/elastic.v5/recipes/bulk_insert",
  7. visibility = ["//visibility:private"],
  8. deps = [
  9. "//vendor/golang.org/x/sync/errgroup:go_default_library",
  10. "//vendor/gopkg.in/olivere/elastic.v5:go_default_library",
  11. ],
  12. )
  13. go_binary(
  14. name = "bulk_insert",
  15. embed = [":go_default_library"],
  16. visibility = ["//visibility:public"],
  17. )
  18. filegroup(
  19. name = "package-srcs",
  20. srcs = glob(["**"]),
  21. tags = ["automanaged"],
  22. visibility = ["//visibility:private"],
  23. )
  24. filegroup(
  25. name = "all-srcs",
  26. srcs = [":package-srcs"],
  27. tags = ["automanaged"],
  28. visibility = ["//visibility:public"],
  29. )