We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4fef717 commit a428b54Copy full SHA for a428b54
crates/pet-conda/src/utils.rs
@@ -32,8 +32,9 @@ pub fn is_conda_install(path: &Path) -> bool {
32
33
/// conda-meta must exist as this contains a mandatory `history` file.
34
/// The root conda installation folder is also a conda environment (its the base environment).
35
+/// Exclude Pixi environments to avoid misidentifying them as conda environments.
36
pub fn is_conda_env(path: &Path) -> bool {
- path.join("conda-meta").is_dir()
37
+ path.join("conda-meta").is_dir() && !path.join("conda-meta").join("pixi").is_file()
38
}
39
40
/// Only used in tests, noop in production.
0 commit comments