-
Notifications
You must be signed in to change notification settings - Fork 7k
bugfix - uv_runtime_env_hook.py #59567
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
Signed-off-by: AYou0207 <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code Review
This pull request fixes a bug in uv_runtime_env_hook.py that caused an AssertionError when uv run was used with options but no explicit command (e.g., uv run -m my_module). The change correctly adds a check to handle cases where the parsed command is an empty list. However, this fix appears to be incomplete as it introduces a subsequent issue on line 327, where uv_run_args is incorrectly assigned an empty list when command is empty. This leads to py_executable in the runtime environment being set to an empty string. I've added a specific comment with suggestions on how to address this. I also left a comment to improve the clarity of the code comment that was added.
Signed-off-by: AYou0207 <[email protected]>
Signed-off-by: AYou0207 <[email protected]>
Description
The following demo breaks using current ray codebase.
This PR fixes it.
Related issues
N/A