8000 Support nested keys in conda config --get by mingwandroid · Pull Request #10447 · conda/conda · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Support nested keys in conda config --get #10447

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

Merged
merged 1 commit into from
Mar 26, 2021

Conversation

mingwandroid
Copy link
Contributor
@mingwandroid mingwandroid commented Jan 9, 2021

The bug:
$ echo "conda_build:">>/.condarc
$ echo " cache_dir: /opt/conda/conda-bld">>
/.condarc
$ conda config --get conda_build.cache_dir
unknown key conda_build.cache_dir

The diagnosis:
We use nested keys in conda-build, but conda refuses to play ball
because it cares not for our nesting when it looks for the key.

The fix:
Step through the requested, dotted, nested key and rc_config in
lock-step.

The resolution:
$ conda config --get conda_build.cache_dir
--set conda_build.cache_dir /opt/conda/conda-bld

@mingwandroid mingwandroid requested a review from a team as a code owner January 9, 2021 02:31
@anaconda-issue-bot anaconda-issue-bot added the cla-signed [bot] added once the contributor has signed the CLA label Jan 9, 2021
The bug:
$ echo "conda_build:">>~/.condarc
$ echo "  cache_dir: /opt/conda/conda-bld">>~/.condarc
$ conda config --get conda_build.cache_dir
unknown key conda_build.cache_dir

The diagnosis:
We use nested keys in conda-build, but conda refuses to play ball
because it cares not for our nesting when it looks for the key.

The fix:
Step through the requested, dotted, nested key and rc_config in
lock-step.

The resolution:
$ conda config --get conda_build.cache_dir
--set conda_build.cache_dir /opt/conda/conda-bld
@mingwandroid mingwandroid changed the title Us.master Support nested keys in conda config --get Jan 9, 2021
chenghlee
chenghlee previously approved these changes Mar 24, 2021
@chenghlee chenghlee dismissed their stale review March 24, 2021 22:34

Checking on some failing tests

@chenghlee chenghlee merged commit e1acf86 into conda:master Mar 26, 2021
@github-actions
Copy link
github-actions bot commented Apr 5, 2022

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!

@github-actions github-actions bot added the locked [bot] locked due to inactivity label Apr 5, 2022
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 5, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
cla-signed [bot] added once the contributor has signed the CLA locked [bot] locked due to inactivity
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0