Skip to content

Commit 00650a1

Browse files
committed
wip
1 parent c2d4c5d commit 00650a1

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

python/uv/private/lock.bzl

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -136,27 +136,24 @@ _lock = rule(
136136

137137
def _impl3(ctx):
138138
info = ctx.attr.lock[_LockInfo]
139-
template = info.template
140139
uv = info.uv
141-
args = info.args
142-
srcs = info.srcs
143140
py_runtime = info.py
144141

145142
args = [
146143
uv.short_path,
147144
"pip",
148145
"compile",
149-
] + args + [
146+
] + info.args + [
150147
src.short_path
151-
for src in srcs
148+
for src in info.srcs
152149
] + [
153150
"--python",
154151
py_runtime.interpreter.short_path,
155152
]
156153

157154
executable = ctx.actions.declare_file(ctx.label.name)
158155
ctx.actions.expand_template(
159-
template = template,
156+
template = info.template,
160157
substitutions = {
161158
"out=replace": "out={}/{}".format(ctx.label.package, ctx.attr.output),
162159
"uv pip compile": " ".join(args),

0 commit comments

Comments
 (0)