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

Invalidate uv.lock if registry sources are removed #6026

Merged
merged 1 commit into from
Aug 13, 2024

Conversation

charliermarsh
Copy link
Member

Summary

Now, if you resolve against a registry, then swap it out for another, we won't reuse the lockfile. (If you don't provide any registry configuration, then we won't enforce this, so that uv lock --index-url foo and uv lock is stable.)

Closes #5920.

@charliermarsh charliermarsh added bug Something isn't working preview Experimental behavior labels Aug 12, 2024
Copy link
Member

@BurntSushi BurntSushi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems sensible!

@charliermarsh charliermarsh force-pushed the charlie/invalidate-index branch 2 times, most recently from 6746f61 to 3b26c8f Compare August 13, 2024 15:39
@charliermarsh charliermarsh enabled auto-merge (squash) August 13, 2024 15:39
@charliermarsh charliermarsh merged commit 1bbb05d into main Aug 13, 2024
56 checks passed
@charliermarsh charliermarsh deleted the charlie/invalidate-index branch August 13, 2024 23:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working preview Experimental behavior
Projects
None yet
Development

Successfully merging this pull request may close these issues.

uv lock should invalidate lockfile if registries change
2 participants