Skip to content

Commit

Permalink
fix: Also warn about detached environments on Windows (#2985)
Browse files Browse the repository at this point in the history
  • Loading branch information
Hofer-Julian authored Jan 22, 2025
1 parent 121c8d4 commit 326a446
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/project/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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{}.",
Expand All @@ -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);
}

Expand Down

0 comments on commit 326a446

Please # to comment.