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

Update hashes without --upgrade if not present #2966

Merged
merged 1 commit into from
Apr 10, 2024
Merged

Conversation

charliermarsh
Copy link
Member

@charliermarsh charliermarsh commented Apr 10, 2024

Summary

If the user runs with --generate-hashes, and the lockfile doesn't contain any hashes for a package (despite being pinned), we should add new hashes. This mirrors running uv pip compile --generate-hashes for the first time with an existing lockfile.

Closes #2962.

@charliermarsh charliermarsh marked this pull request as ready for review April 10, 2024 14:46
@charliermarsh charliermarsh added the bug Something isn't working label Apr 10, 2024
@charliermarsh charliermarsh changed the title Update hashes without --upgrade if not present Update hashes without --upgrade if not present Apr 10, 2024
@charliermarsh charliermarsh enabled auto-merge (squash) April 10, 2024 14:46
@charliermarsh charliermarsh merged commit d832355 into main Apr 10, 2024
36 checks passed
@charliermarsh charliermarsh deleted the charlie/gen branch April 10, 2024 14:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

--generate-hashes should generate missing hashes for pinned packages
2 participants