We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fe224ae commit 0fe2bb4Copy full SHA for 0fe2bb4
python/uv/private/lock.bzl
@@ -136,7 +136,7 @@ def _lock_impl(ctx):
136
args.run_shell.add("--no-progress")
137
args.run_shell.add("--quiet")
138
139
- ctx.actions.run_shell(
+ if ctx.files.existing_output:
140
command = '{python} -c {python_cmd} && "$@"'.format(
141
python = getattr(python, "path", python),
142
python_cmd = shell.quote(
@@ -145,7 +145,12 @@ def _lock_impl(ctx):
145
dst = output.path,
146
),
147
148
- ) if ctx.files.existing_output else '"$@"',
+ )
149
+ else:
150
+ command = '"$@"'
151
+
152
+ ctx.actions.run_shell(
153
+ command = command,
154
inputs = srcs + ctx.files.existing_output,
155
mnemonic = "PyRequirementsLockUv",
156
outputs = [output],
0 commit comments