uv add
adds a depencency even if there is a failure during installation
#6486
Labels
uv add
adds a depencency even if there is a failure during installation
#6486
When running
uv add
fails to install the package, it is still added to the dependency array ofpyproject.toml
causing future invocations ofuv add
to fail as well.Reproduction Steps
uv add pytorch
in a blank projectException: You tried to install "pytorch". The package named for PyTorch is "torch"
pyproject.toml
added it to the dependencies array despite this failure.uv add torch
as instructed, it will fail in the same way aspytorch
is now in the dependency array.The text was updated successfully, but these errors were encountered: