Skip to content

0.0.4 Support for different architectures

Latest
Compare
Choose a tag to compare
@5h4d0w4rt 5h4d0w4rt released this 30 Oct 14:35
· 11 commits to main since this release
e032cbb

Support for different architectures now added!

Bazel will automatically determine the required binary set for your host platform. Platform namespace (but not at all required to use) is available at

@io_bazel_rules_prometheus//prometheus/internal:prometheus_platform_{os}-{cpu_architecture}

example:

bazelisk build //... --platforms @io_bazel_rules_prometheus//prometheus/internal:prometheus_platform_linux-amd64
bazelisk build //... --platforms @io_bazel_rules_prometheus//prometheus/internal:prometheus_platform_darwin-amd64

release snippet:

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

http_archive(
    name = "io_bazel_rules_prometheus",
    sha256 = "c9980c638cba01015f31bc610788d5396b05b67c99c1f065fef17427cb8459fe",
    strip_prefix = "rules_prometheus-0.0.4",
    urls = ["https://github.com/5h4d0w4rt/rules_prometheus/archive/0.0.4.zip"],
)

load("@io_bazel_rules_prometheus//:deps.bzl", "prometheus_repositories")

prometheus_repositories()