Skip to content

Commit 2538e4d

Browse files
authored
Mark uv extension as reproducible
1 parent 5b5e58f commit 2538e4d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

python/uv/private/uv.bzl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ EXPERIMENTAL: This is experimental and may be removed without notice
1818
A module extension for working with uv.
1919
"""
2020

21+
load("@bazel_features//:features.bzl", "bazel_features")
2122
load("//python/private:auth.bzl", "AUTH_ATTRS", "get_auth")
2223
load("//python/private:common_labels.bzl", "labels")
2324
load(":toolchain_types.bzl", "UV_TOOLCHAIN_TYPE")
@@ -373,6 +374,11 @@ def _uv_toolchain_extension(module_ctx):
373374
hub_name = "uv",
374375
)
375376

377+
if bazel_features.external_deps.extension_metadata_has_reproducible:
378+
return module_ctx.extension_metadata(reproducible = True)
379+
else:
380+
return None
381+
376382
def _overlap(first_collection, second_collection):
377383
for x in first_collection:
378384
if x in second_collection:

0 commit comments

Comments
 (0)