You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: filter out WSL Windows drive mount paths in conda locator (Fixes#369) (#370)
On WSL2, `~/.conda/environments.txt` is shared with the Windows host and
contains paths like `/mnt/d/Tools/Anaconda/envs/...` that point to
Windows PE executables unusable from Linux. PET would try to find a
conda manager for each, fail, and log ERROR for every environment —
causing log spam and ~6s overhead.
**Changes:**
- Add `is_windows_drive_mount()` helper (Unix-only) to detect
`/mnt/<drive>/...` paths
- Add `is_wsl()` helper using `/proc/version` WSL signature detection
with result caching
- Filter out Windows drive mount paths early in
`get_conda_environment_paths()` before expensive scanning
- Unit tests for the path matching logic (Unix-gated)
Fixes#369
0 commit comments