Skip to content

Commit d159fa0

Browse files
committed
fix: Mark toolchain as reproducible
1 parent 0418c38 commit d159fa0

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

jq/toolchain/platforms.bzl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,12 @@ jq_toolchain(name = "jq_toolchain", bin = "{0}", visibility = ["//visibility:pub
7474
# Base BUILD file for this repository
7575
rctx.file("BUILD.bazel", build_content)
7676

77+
# Bazel <8.3.0 lacks rctx.repo_metadata
78+
if not hasattr(rctx, "repo_metadata"):
79+
return None
80+
81+
return rctx.repo_metadata(reproducible = True)
82+
7783
jq_platform_repo = repository_rule(
7884
implementation = _jq_platform_repo_impl,
7985
doc = "Fetch external tools needed for jq toolchain",

0 commit comments

Comments
 (0)