Must the executable name match package name when using uv tool run package
#7729
Labels
question
Asking for clarification or support
uv tool run package
#7729
Command ran:
uv tool run toolong
Output:
https://github.com/Textualize/toolong
I believe the issue is uv is expecting the executable name (tl) to be the same as package name (toolong).
Is a workaround like below necessary?
It can work with
uv run --with toolong -- tl file.log
though after getting inspiration from sample at https://docs.astral.sh/uv/concepts/tools/#relationship-to-uv-run.Is this a workaround or i'm not using
uv tool run
anduv run
properly?Why did
uv tool run
api get invented ifuv run
looks like it covers the same things that uv tool run does?I noticed
uv run
has --python to download python version on demand butuv tool
does not have --python.Does this mean when using
uv tool
the python we want must already exist and be set as default?I wish the docs had an explicit summary table/diagram on what is being automated for each API.
Currently i'm reading in docs and ctrl+f/eyeballing keywords to find this information.
uv platform: WSL2
uv version: uv 0.4.15
The text was updated successfully, but these errors were encountered: