Skip to content

Commit

Permalink
fix: venv symlink already exist when installing again into venv
Browse files Browse the repository at this point in the history
  • Loading branch information
nichmor committed Feb 9, 2024
1 parent 01883bb commit 6e65630
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/rattler_installs_packages/src/python_env/venv.rs
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ prompt = {}"#,

Check warning on line 272 in crates/rattler_installs_packages/src/python_env/venv.rs

View workflow job for this annotation

GitHub Actions / Format and Lint

Diff in /home/runner/work/rip/rip/crates/rattler_installs_packages/src/python_env/venv.rs
for bin_name in python_bins.into_iter() {
let venv_python_bin = venv_bin.join(bin_name);
if !venv_python_bin.exists() && venv_exe_path != venv_python_bin {
if (!venv_python_bin.exists() && !venv_python_bin.is_symlink()) && venv_exe_path != venv_python_bin {
copy_file(venv_exe_path, &venv_python_bin)?;
}
}
Expand Down

0 comments on commit 6e65630

Please sign in to comment.