Skip to content

Commit 7ddfd28

Browse files
committed
wip
1 parent 872e034 commit 7ddfd28

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

python/uv/private/lock.bzl

+3-10
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
"""A simple macro to lock the requirements.
1616
"""
1717

18-
load("@bazel_skylib//rules:diff_test.bzl", "diff_test")
1918
load("@bazel_skylib//rules:expand_template.bzl", "expand_template")
2019
load("//python:py_test.bzl", "py_test")
2120

@@ -231,8 +230,8 @@ def lock(*, name, srcs, out, args = [], **kwargs):
231230
pkg = native.package_name()
232231
update_target = "{}.update".format(name)
233232
locker_target = "{}.run".format(name)
234-
235233
maybe_out = _maybe_file(out)
234+
236235
_lock(
237236
name = name,
238237
srcs = srcs,
@@ -250,6 +249,8 @@ def lock(*, name, srcs, out, args = [], **kwargs):
250249
args = args,
251250
)
252251

252+
# A target for updating the in-tree version directly by skipping the in-action
253+
# uv pip compile.
253254
_lock_run(
254255
name = locker_target,
255256
lock = name,
@@ -274,11 +275,3 @@ def lock(*, name, srcs, out, args = [], **kwargs):
274275
data = [name] + ([] if not maybe_out else [maybe_out]),
275276
**kwargs
276277
)
277-
278-
if maybe_out:
279-
diff_test(
280-
name = name + "_test",
281-
file1 = out + ".new",
282-
file2 = maybe_out,
283-
tags = ["manual"],
284-
)

0 commit comments

Comments
 (0)