Skip to content

uv venv -c . wipes working directory and fails to create a venv #15474

@notatallshaw

Description

@notatallshaw

Summary

I have a habit of accidentally writing uv venv . instead of uv venv or uv venv .venv, since uv venv now deletes everything in the directory this deleted my entire working directory.

Example

# DO NOT DO THIS:
cd $HOME
uv venv -c .

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions