astral-sh / rye

a Hassle-Free Python Experience
https://rye.astral.sh
MIT License
13.82k stars 467 forks source link

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

Closed mvaled closed 6 months ago

mvaled commented 6 months ago

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

mvaled commented 6 months ago

Hi @charliermarsh

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

mvaled commented 6 months ago

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 commented 6 months ago

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