-
Notifications
You must be signed in to change notification settings - Fork 371
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
add more condarc paths #3695
add more condarc paths #3695
Conversation
libmamba/src/api/configuration.cpp
Outdated
const std::string xgd_config_home = util::get_env("XDG_CONFIG_HOME").value(); | ||
for (const auto& path: condarc_list) | ||
{ | ||
conda_user.push_back(fs::u8path(xgd_config_home) + "/conda" + path); |
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.
I think you can rely on the concatenation operator of the path (ie operator/) instead of that of strings:
conda_user.push_back(fs::u8path(xgd_config_home) / "conda" / path);
This requires to remove the heading /
in the member of the condarc_list above.
libmamba/src/api/configuration.cpp
Outdated
const std::string conda_prefix = util::get_env("CONDA_PREFIX").value(); | ||
for (const auto& path: condarc_list) | ||
{ | ||
conda_user.push_back(fs::u8path(conda_prefix) + path); |
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.
Same remark here.
Thanks! It's done. |
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.
Once you've fixed the linter, we can merge it.
Fix #3259