8000 Improve `conda config` support for nested keys by chenghlee · Pull Request #10572 · conda/conda · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Improve conda config support for nested keys #10572

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 6 commits into from
Mar 26, 2021

Conversation

chenghlee
Copy link
Contributor

Essentially an extension of PR #10447 to address certain test failures induced by that PR.

mingwandroid and others added 5 commits January 9, 2021 03:35
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
Separate tests into more manageable chunks; reduce use of magic strings
Needed to check/improve PR#10447
Failures involved either invalid keys slipping through or incorrect
`--add` or `--set` commands being generated for nested keys.
@chenghlee chenghlee requested a review from a team March 25, 2021 21:04
@anaconda-issue-bot anaconda-issue-bot added the cla-signed [bot] added once the contributor has signed the CLA label Mar 25, 2021
@chenghlee chenghlee added this to the 4.10.0 milestone Mar 25, 2021
The comment may be removed from the output config, depending on the
installed versions of Python & other dependencies, so check for the
absence of the key instead.
@chenghlee chenghlee requested review from a team and removed request for a team March 26, 2021 13:31
@mingwandroid
Copy link
Contributor

Thanks @chenghlee! I have a conda-build PR to fix lots of CDT bugs that I hope to get merged once this makes it into a release. Any idea when that might be?

@chenghlee
Copy link
Contributor Author

@mingwandroid: Hoping to tag the 4.10.0 release by today, Monday at the latest.

@chenghlee chenghlee merged commit 8be64d9 into conda:master Mar 26, 2021
@chenghlee chenghlee deleted the conda-config-nested-keys branch March 26, 2021 15:01
@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.

5 participants
0