BUILD.bazel 789 B

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