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

Allow to generate lockfiles with hashes when using uv. #1070

Merged
merged 4 commits into from
May 10, 2024

Conversation

mvaled
Copy link
Contributor

@mvaled mvaled commented May 10, 2024

This PR add the option --generate-hashes to both rye sync and rye lock. It will generate lock files with hashes if using uv.

This was an oversight... We should keep the behavior backwards compatible.
Sadly we cannot test hashes because there are not compatible
PEP508 (pep505-rs).
@mvaled mvaled requested a review from charliermarsh May 10, 2024 19:36
@mvaled
Copy link
Contributor Author

mvaled commented May 10, 2024

Hi @charliermarsh

Thanks for the quick review. I fixed the failing tests.

@mvaled
Copy link
Contributor Author

mvaled commented May 10, 2024

Hi @charliermarsh

The Test (Window) is failing due to an access denied.

         11 │+Caused by:
         12 │+    Access is denied. (os error 5) at path "C:/Users/RUNNER~1/AppData/Local/Temp/.tmplSh3zx"

I think this is probably not related to the PR.

@charliermarsh charliermarsh merged commit 2f59957 into astral-sh:main May 10, 2024
8 checks passed
@charliermarsh
Copy link
Member

Looks like a spurious failure -- re-ran and it succeeded. Thanks!

@mvaled mvaled deleted the with-hashes-sync-lock branch May 10, 2024 20:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants