Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion crates/uv/src/commands/project/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,7 @@ impl ProjectInterpreter {
if fs_err::read_dir(&venv).is_ok_and(|mut dir| dir.next().is_some()) {
return Err(ProjectError::InvalidProjectEnvironmentDir(
venv,
"because it is not a valid Python environment (no Python executable was found)"
"it is not a valid Python environment (no Python executable was found)"
.to_string(),
));
}
Expand Down
6 changes: 3 additions & 3 deletions crates/uv/tests/it/sync.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2385,7 +2385,7 @@ fn sync_custom_environment_path() -> Result<()> {
----- stdout -----

----- stderr -----
error: Project virtual environment directory `[TEMP_DIR]/foo` cannot be used because because it is not a valid Python environment (no Python executable was found)
error: Project virtual environment directory `[TEMP_DIR]/foo` cannot be used because it is not a valid Python environment (no Python executable was found)
"###);

// But if it's just an incompatible virtual environment...
Expand Down Expand Up @@ -3554,7 +3554,7 @@ fn sync_invalid_environment() -> Result<()> {
----- stdout -----

----- stderr -----
error: Project virtual environment directory `[VENV]/` cannot be used because because it is not a valid Python environment (no Python executable was found)
error: Project virtual environment directory `[VENV]/` cannot be used because it is not a valid Python environment (no Python executable was found)
"###);

// But if it's just an incompatible virtual environment...
Expand Down Expand Up @@ -3620,7 +3620,7 @@ fn sync_invalid_environment() -> Result<()> {
----- stdout -----

----- stderr -----
error: Project virtual environment directory `[VENV]/` cannot be used because because it is not a valid Python environment (no Python executable was found)
error: Project virtual environment directory `[VENV]/` cannot be used because it is not a valid Python environment (no Python executable was found)
"###);

// But if it's not a virtual environment...
Expand Down
Loading