-
Notifications
You must be signed in to change notification settings - Fork 723
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 sync --no-clean
#4367
uv sync --no-clean
#4367
Conversation
dc78d8b
to
57f0657
Compare
57f0657
to
69b7e7b
Compare
I'm not sure I love the name. Are there some examples of the flag in other tools? |
The name is from a Poetry proposal, although it was not accepted. Most other tools have the opposite default behavior, so I don't know of much prior art here. |
I don't think we have a clear concept of "tracked" and it doesn't have a negative which follows our typical "no" prefix. I think a user could change the default sync behavior via configuration and want to opt-in to removal via the CLI and that should be natural. Just to throw some ideas out....
|
@ibraheemdev can we separate fixing |
76893f9
to
bc5e373
Compare
|
It's a little weird because it refers to the cache in those cases but the actual environment in this one. I'm fine to try it out though. |
There's also |
ef708c7
to
6274e37
Compare
That's where I saw it :D |
Summary
Adds a
--no-clean
flag touv sync
that keeps extraneous installations. This is the default inuv run
anduv add
, but not inuv sync
oruv remove
. This means you need to run an explicituv sync/remove
to clean the virtual environment.Could use some tests.