We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 74e10bd commit 22f1352Copy full SHA for 22f1352
1 file changed
python/private/python_repository.bzl
@@ -224,7 +224,15 @@ define_hermetic_runtime_toolchain_impl(
224
else:
225
attrs["urls"] = urls
226
227
- return attrs
+ # Bazel <8.3.0 lacks repository_ctx.repo_metadata
228
+ if not hasattr(rctx, "repo_metadata"):
229
+ return attrs
230
+
231
+ reproducible = rctx.attr.sha256 != ""
232
+ return rctx.repo_metadata(
233
+ reproducible = reproducible,
234
+ attrs_for_reproducibility = {} if reproducible else attrs,
235
+ )
236
237
python_repository = repository_rule(
238
_python_repository_impl,
0 commit comments