Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions python/uv/private/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ bzl_library(
":uv_toolchains_repo_bzl",
"//python/private:auth_bzl",
"//python/private:common_labels_bzl",
"@bazel_features//:features",
],
)

Expand Down
6 changes: 6 additions & 0 deletions python/uv/private/uv.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ EXPERIMENTAL: This is experimental and may be removed without notice
A module extension for working with uv.
"""

load("@bazel_features//:features.bzl", "bazel_features")
load("//python/private:auth.bzl", "AUTH_ATTRS", "get_auth")
load("//python/private:common_labels.bzl", "labels")
load(":toolchain_types.bzl", "UV_TOOLCHAIN_TYPE")
Expand Down Expand Up @@ -373,6 +374,11 @@ def _uv_toolchain_extension(module_ctx):
hub_name = "uv",
)

if bazel_features.external_deps.extension_metadata_has_reproducible:
return module_ctx.extension_metadata(reproducible = True)
else:
return None

def _overlap(first_collection, second_collection):
for x in first_collection:
if x in second_collection:
Expand Down