-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Fix setting new user .condarc #10479
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
…arc. If the former doesn't exist use conda defaults config.
|
@chenghlee, @cjmartian, any chance to review this PR? I don't understand what is the purpose of the following lines: Lines 700 to 706 in e37cf84
This is adding the |
|
ping |
|
@chenghlee, @cjmartian, any hope to have this PR considered? It is a simple bug fix. |
cjmartian
left a comment
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.
This seems fine to me. I think it's worth double checking with @chenghlee but from what I can tell it looks good.
…ondarc # Conflicts: # tests/cli/test_config.py
|
Thanks for the reply, I have fixed the merge conflict! |
|
Hi there, thank you for your contribution! This pull request has been automatically locked because it has not had recent activity after being closed. Please open a new issue or pull request if needed. Thanks! |
Fixes conda-forge/miniforge#44.
Currently, when there is a
.condarcin the root prefix and no user.condarc, setting configuration parameter will use the default values hard-coded in conda - defined in conda.base.constant.This is not an issue with anaconda/miniconda distribution, since these hard-coded defaults matches the expectation of these distributions, however, this is an issue for distribution for example, because the
.condarcprovided to constructor is not honoured. An example of this issue is demonstrated in conda-forge/miniforge#44 (comment), where thedefaultschannels are added but obviously this would also applied to any other configuration parameter.This PR simply fixes the issue by loading the
.condarcpresent in the root prefix (if present) when no other.condarchave been found.