From a428b5425a79d3b1589cc03364ca98b75a12ea05 Mon Sep 17 00:00:00 2001 From: Renan Rodrigues dos Santos Date: Mon, 28 Jul 2025 05:46:18 -0300 Subject: [PATCH] Exclude Pixi environments from the Conda locator --- crates/pet-conda/src/utils.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/pet-conda/src/utils.rs b/crates/pet-conda/src/utils.rs index 2cc7276e..e84bdf80 100644 --- a/crates/pet-conda/src/utils.rs +++ b/crates/pet-conda/src/utils.rs @@ -32,8 +32,9 @@ pub fn is_conda_install(path: &Path) -> bool { /// conda-meta must exist as this contains a mandatory `history` file. /// The root conda installation folder is also a conda environment (its the base environment). +/// Exclude Pixi environments to avoid misidentifying them as conda environments. pub fn is_conda_env(path: &Path) -> bool { - path.join("conda-meta").is_dir() + path.join("conda-meta").is_dir() && !path.join("conda-meta").join("pixi").is_file() } /// Only used in tests, noop in production.