BUILD.bazel 800 B

1234567891011121314151617181920212223242526272829303132333435
  1. load("@io_bazel_rules_go//go:def.bzl", "go_library")
  2. go_library(
  3. name = "go_default_library",
  4. srcs = [
  5. "alert.go",
  6. "fingerprinting.go",
  7. "fnv.go",
  8. "labels.go",
  9. "labelset.go",
  10. "metric.go",
  11. "model.go",
  12. "signature.go",
  13. "silence.go",
  14. "time.go",
  15. "value.go",
  16. ],
  17. importmap = "go-common/vendor/github.com/prometheus/common/model",
  18. importpath = "github.com/prometheus/common/model",
  19. visibility = ["//visibility:public"],
  20. )
  21. filegroup(
  22. name = "package-srcs",
  23. srcs = glob(["**"]),
  24. tags = ["automanaged"],
  25. visibility = ["//visibility:private"],
  26. )
  27. filegroup(
  28. name = "all-srcs",
  29. srcs = [":package-srcs"],
  30. tags = ["automanaged"],
  31. visibility = ["//visibility:public"],
  32. )