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

--require-hashes option does not work as with pip #6701

Closed
thierryba opened this issue Aug 27, 2024 · 4 comments · Fixed by #6731
Closed

--require-hashes option does not work as with pip #6701

thierryba opened this issue Aug 27, 2024 · 4 comments · Fixed by #6731
Assignees
Labels
compatibility Compatibility with a specification or another tool

Comments

@thierryba
Copy link

so I was trying to install my requirements.txt with uv pip install --require-hashes requirements.txt

My file contains urls with hashes. Example: borgbackup @ https://3rdparty.s3.amazonaws.com/borgbackup-1.2.8-cp312-cp312-macosx_11_0_universal2.whl#sha256=aca0a62c0e359b7663ebd4ee65e7bf7cdcbaecc8a001838eb49e8c886948ae6d

But uv is complaining saying that there is no hash. Is this expected?

@charliermarsh
Copy link
Member

What does the requirements.txt contain exactly, in the above command?

@thierryba
Copy link
Author

@charliermarsh, this:
borgbackup @ https://3rdparty.s3.amazonaws.com/borgbackup-1.2.8-cp312-cp312-macosx_11_0_universal2.whl#sha256=aca0a62c0e359b7663ebd4ee65e7bf7cdcbaecc8a001838eb49e8c886948ae6d

@charliermarsh
Copy link
Member

Right now you need to do:

borgbackup @ https://3rdparty.s3.amazonaws.com/borgbackup-1.2.8-cp312-cp312-macosx_11_0_universal2.whl --hash sha256:aca0a62c0e359b7663ebd4ee65e7bf7cdcbaecc8a001838eb49e8c886948ae6d

But I thought we supported reading hashes from the fragment directly. I'll look into it.

@charliermarsh charliermarsh added the compatibility Compatibility with a specification or another tool label Aug 27, 2024
@charliermarsh charliermarsh self-assigned this Aug 27, 2024
@charliermarsh
Copy link
Member

Fixed in the next release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compatibility Compatibility with a specification or another tool
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants