-
Notifications
You must be signed in to change notification settings - Fork 2k
Detect and indicate dry runs with the conda init commands
#15211
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
Detect and indicate dry runs with the conda init commands
#15211
Conversation
CodSpeed Instrumentation Performance ReportMerging #15211 will not alter performanceComparing Summary
|
|
Thanks @jaimergp, I wasn't sure whether to use |
|
I have resolved the merge conflicts that occurred with recent merges. Thank you! |
Description
This PR updates the
print_plan_results()function inconda.core.initialize, which is called as part of theconda initCLI. The issue was that commands likeconda init --dry-run <shell>did not clearly indicate that the operation was a dry run and did not actually make any changes to the shell commands. This could mislead users into thinking that their shell configuration or dotfiles had been altered.I have added a few print statements that activate when
context.dry_runis truthy. I'd welcome any feedback on how these statements should be worded. Additionally, I believe that in a future PR, we could improve this further by changing the keywords so thatResult.MODIFIEDin the output table reads "would be modified" instead of simply "modified" when a dry run is executed.Closes #15097
Related to #15096
Checklist - did you ...
newsdirectory (using the template) for the next release's release notes?Add / update outdated documentation?