Skip to content

Commit 33c3b67

Browse files
committed
exp(uv): support uv lock build action on Google RBE
Work towards bazel-contrib#1975
1 parent 8fc25de commit 33c3b67

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

python/uv/private/lock.bzl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,11 @@ def _lock_impl(ctx):
145145
],
146146
progress_message = "Creating a requirements.txt with uv: %{label}",
147147
env = ctx.attr.env,
148+
execution_requirements = {
149+
# This is to support Google RBE service, PRs to support other RBE
150+
# providers that do not break the existing ones are welcome.
151+
"dockerNetwork": "standard",
152+
},
148153
)
149154

150155
return [

tests/uv/lock/lock_tests.bzl

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,19 +35,13 @@ def lock_test_suite(name):
3535
"testdata/build_constraints.txt",
3636
"testdata/build_constraints2.txt",
3737
],
38-
# It seems that the CI remote executors for the RBE do not have network
39-
# connectivity due to current CI setup.
40-
tags = ["no-remote-exec"],
4138
out = "testdata/requirements.txt",
4239
)
4340

4441
lock(
4542
name = "requirements_new_file",
4643
srcs = ["testdata/requirements.in"],
4744
out = "does_not_exist.txt",
48-
# It seems that the CI remote executors for the RBE do not have network
49-
# connectivity due to current CI setup.
50-
tags = ["no-remote-exec"],
5145
)
5246

5347
py_reconfig_test(

0 commit comments

Comments
 (0)