bazel-contrib / bazel-lib

Common useful functions for writing BUILD files and Starlark macros/rules
Apache License 2.0
137 stars 89 forks source link

2.9.0 introduced a dependency on @platforms / @host_platform for bzl #949

Closed gzm0 closed 1 month ago

gzm0 commented 1 month ago

This makes stardoc fail downstream in WORKSPACE setups

Likely culprit: #914

gzm0 commented 1 month ago

Workaround:

http_archive(
    name = "platforms",
    urls = [
        "https://mirror.bazel.build/github.com/bazelbuild/platforms/releases/download/0.0.10/platforms-0.0.10.tar.gz",
        "https://github.com/bazelbuild/platforms/releases/download/0.0.10/platforms-0.0.10.tar.gz",
    ],
    sha256 = "218efe8ee736d26a3572663b374a253c012b716d8af0c07e842e82f238a0a7ee",
)

load("@platforms//host:extension.bzl", "host_platform_repo")

host_platform_repo(name = "host_platform")
mattem commented 1 month ago

2.9.1 resolved this, see https://github.com/bazel-contrib/bazel-lib/releases/tag/v2.9.1

(duplicates https://github.com/bazel-contrib/bazel-lib/issues/944)