BUILD.bazel 742 B

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