-
Notifications
You must be signed in to change notification settings - Fork 7k
[Core] Remove add_command_alias #58719
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
Conversation
Signed-off-by: Jiajun Yao <[email protected]>
Signed-off-by: Jiajun Yao <[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 removes the add_command_alias function to address a deepcopy issue with newer versions of the click library. While this correctly removes several deprecated aliases, it also has the side effect of making some hidden commands (rsync_down, rsync_up, get_head_ip) visible in the CLI. My review provides suggestions to keep these commands hidden without using the problematic function, thus preserving the intended CLI interface.
Signed-off-by: Jiajun Yao <[email protected]>
Signed-off-by: Jiajun Yao <[email protected]>
`add_command_alias` deepcopy the `Command` object but it's no longer deep-copyable: pallets/click#3065 (comment). We can remove it completely since it just creates some command aliases that have been deprecated for 5+ years. Closes ray-project#56747 --------- Signed-off-by: Jiajun Yao <[email protected]>
`add_command_alias` deepcopy the `Command` object but it's no longer deep-copyable: pallets/click#3065 (comment). We can remove it completely since it just creates some command aliases that have been deprecated for 5+ years. Closes ray-project#56747 --------- Signed-off-by: Jiajun Yao <[email protected]> Signed-off-by: Aydin Abiar <[email protected]>
`add_command_alias` deepcopy the `Command` object but it's no longer deep-copyable: pallets/click#3065 (comment). We can remove it completely since it just creates some command aliases that have been deprecated for 5+ years. Closes ray-project#56747 --------- Signed-off-by: Jiajun Yao <[email protected]> Signed-off-by: YK <[email protected]>
`add_command_alias` deepcopy the `Command` object but it's no longer deep-copyable: pallets/click#3065 (comment). We can remove it completely since it just creates some command aliases that have been deprecated for 5+ years. Closes ray-project#56747 --------- Signed-off-by: Jiajun Yao <[email protected]>
Description
add_command_aliasdeepcopy theCommandobject but it's no longer deep-copyable: pallets/click#3065 (comment). We can remove it completely since it just creates some command aliases that have been deprecated for 5+ years.Related issues
Closes #56747