From 326a4469758ca93fc72a3c505bec1667668583cd Mon Sep 17 00:00:00 2001 From: Hofer-Julian <30049909+Hofer-Julian@users.noreply.github.com> Date: Wed, 22 Jan 2025 16:42:43 +0100 Subject: [PATCH] fix: Also warn about detached environments on Windows (#2985) --- src/project/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/project/mod.rs b/src/project/mod.rs index bfda133fa..52b152545 100644 --- a/src/project/mod.rs +++ b/src/project/mod.rs @@ -377,7 +377,6 @@ impl Project { let detached_environments_path = detached_environments_path.join(consts::ENVIRONMENTS_DIR); let _ = CUSTOM_TARGET_DIR_WARN.get_or_init(|| { - #[cfg(not(windows))] if default_envs_dir.exists() && !default_envs_dir.is_symlink() { tracing::warn!( "Environments found in '{}', this will be ignored and the environment will be installed in the 'detached-environments' directory: '{}'. It's advised to remove the {} folder from the default directory to avoid confusion{}.", @@ -387,6 +386,7 @@ impl Project { if cfg!(windows) { "" } else { " as a symlink can be made, please re-install after removal." } ); } else { + #[cfg(not(windows))] create_symlink(&detached_environments_path, &default_envs_dir); }