Skip to content
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

Remove extraneous installations in uv sync by default #4366

Merged
merged 1 commit into from
Jun 17, 2024

Conversation

ibraheemdev
Copy link
Member

Summary

First step of #4358. uv sync will now remove any extraneous installations by default.

@ibraheemdev ibraheemdev requested a review from zanieb June 17, 2024 18:28
@ibraheemdev ibraheemdev added the preview Experimental behavior label Jun 17, 2024
@ibraheemdev
Copy link
Member Author

As a reference point, Poetry makes this opt-in, with poetry install --sync. However, exact sync by default with an opt-out seems like the correct default for uv sync.

When you omit the --sync option, you can install any subset of optional groups without removing those that are already installed. This is very useful, for example, in multi-stage Docker builds, where you run poetry install multiple times in different build stages.

@ibraheemdev ibraheemdev merged commit 05d79f8 into main Jun 17, 2024
47 checks passed
@ibraheemdev ibraheemdev deleted the ibraheem/sync-exact branch June 17, 2024 18:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
preview Experimental behavior
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants