We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8b8e13c commit 656dd38Copy full SHA for 656dd38
1 file changed
crates/pet-conda/src/environments.rs
@@ -72,11 +72,10 @@ pub fn get_conda_environment_info(
72
// Not a conda environment (neither root nor a separate env).
73
return None;
74
}
75
- // If we know the conda install folder, then we can use it.
76
- let mut conda_install_folder = manager
77
- .clone()
78
- .and_then(|m| m.conda_dir)
79
- .or_else(|| get_conda_installation_used_to_create_conda_env(env_path));
+ // Even if we have the conda manager, always fid the conda manager based on the env.
+ // & then use the given conda manager as a fallback.
+ let mut conda_install_folder = get_conda_installation_used_to_create_conda_env(env_path)
+ .or_else(|| manager.clone().and_then(|m| m.conda_dir));
80
81
if let Some(conda_dir) = &conda_install_folder {
82
if conda_dir.exists() {
0 commit comments