Summary
uv sync and uv lock appear to silently accept non-existent package or group names when using --upgrade-package or --upgrade-group.
Even if the provided package or group does not exist in the project dependencies, the command completes successfully and reports everything as resolved/up to date.
This can be confusing because it may hide typos or incorrect package/group names.
Reproduction
Platform
Linux 6.17.0-20-generic x86_64 GNU/Linux
Version
uv 0.11.5 (x86_64-unknown-linux-gnu)
Python version
Python 3.14.3
Summary
uv syncanduv lockappear to silently accept non-existent package or group names when using--upgrade-packageor--upgrade-group.Even if the provided package or group does not exist in the project dependencies, the command completes successfully and reports everything as resolved/up to date.
This can be confusing because it may hide typos or incorrect package/group names.
Reproduction
Platform
Linux 6.17.0-20-generic x86_64 GNU/Linux
Version
uv 0.11.5 (x86_64-unknown-linux-gnu)
Python version
Python 3.14.3