Skip to content

Commit 80f89ac

Browse files
committed
fix: Use File.path instead of short_path in .bat command
File.short_path for external repo files (e.g. the uv binary) gives only the filename within the repo root, not the exec-root-relative path. The Args object resolves Files using File.path, so match that to fix 'cannot find the path' errors on Windows.
1 parent 82cefa3 commit 80f89ac

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎python/uv/private/lock.bzl‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,8 +154,8 @@ def _lock_impl(ctx):
154154
# args.run_info has most args; add the output/progress/quiet
155155
# args that were only added directly to args.run_shell.
156156
def _quote(arg):
157-
if hasattr(arg, "short_path"):
158-
arg = arg.short_path
157+
if hasattr(arg, "path"):
158+
arg = arg.path
159159
arg = arg.replace("/", "\\")
160160
return '"' + arg.replace('"', '""') + '"'
161161

0 commit comments

Comments
 (0)