uv pip sync
fails to clear environment when given an empty requirements list
#4516
Labels
enhancement
New feature or improvement to existing functionality
I have a use case where several different environments are being updated with
uv pip sync
, and some of those environments may legitimately have a desired end state of "just a Python runtime with no extra packages" (the packages that are installed into those environments are platform dependent, and on some platforms there are no additional packages needed).When trying to clear those environments,
uv pip sync
simply reports "No requirements found" and exits immediately instead of synchronising the environment with the requirements list as desired.I can work around this, but being able to reliably clear an environment from outside was a key motivation for switching from
pip-sync
touv pip sync
(due to jazzband/pip-tools#2103)The text was updated successfully, but these errors were encountered: