BUILD.bazel 820 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 = ["main.go"],
  5. importmap = "go-common/vendor/github.com/prometheus/client_golang/examples/random",
  6. importpath = "github.com/prometheus/client_golang/examples/random",
  7. visibility = ["//visibility:private"],
  8. deps = ["//vendor/github.com/prometheus/client_golang/prometheus:go_default_library"],
  9. )
  10. go_binary(
  11. name = "random",
  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. )