-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
uv x
as alternative to uvx
#11646
Comments
It seems very unlikely that we would remove the |
That's a fair point... although I would be surprised if many users have opted for (Also, the change would only be breaking if the installation script explicitly removed the shim from the previous uv release. The shim should theoretically work forever right?) |
I don't think I've seen much evidence of this. I see
It'd be breaking for people using uv in ephemeral environments, like CI or containers. |
I feel like I might be doing something wrong, but
(Without a trailing space, the second is 4M files with a lot of false positives) |
oof... yeah, this could be a painful change. So much for line 2 of the Zen! You guys have been very good about not having many breaking changes. I would hate to see an influx of issues and bad PR as a result of something silly like this. |
Windows exists. And in a professional environment is the most used OS. UV is there to make the life of people easier. Not to make them create their own Your assumptions on how people use Not to mention that I would stop using it if a subcommand called |
I explicitly list tools as development dependencies in
But then just a few lines down, it says
Either a tool is installed or it is not. Which is it? Clearly, tools are installed somewhere, but where? Will this abstract location just grow in size forever with tools that I tried out a single time? Why would I want this? To me, this seems like a package management anti-pattern. But it is here to stay, since removing it would be breaking. |
Proposal
uv currently ships two different binaries with each release,
uv
anduvx
. According to the documentation,uvx
is an alias foruv tool run
and the two commands are exactly equivalent. Theuvx
binary appears to be implemented as an executable shim.I would like to propose that
uv x
be provided in place of (or in addition to)uvx
.Rationale
Precedence for this has been set with
uv v
which is an alias foruv venv
.Pros
Removal of the shim would simplify the build and installation of uv and marginally reduce the size of the release assets (~150 KB for the x64 Windows archive).
Cons
A single Space
Example
The text was updated successfully, but these errors were encountered: