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

Add --require-hashes support #1951

Closed
epicserve opened this issue Feb 24, 2024 · 3 comments
Closed

Add --require-hashes support #1951

epicserve opened this issue Feb 24, 2024 · 3 comments

Comments

@epicserve
Copy link

epicserve commented Feb 24, 2024

So far, UV is excellent and so much faster! Thank you guys for making it. I'm trying to include it in my Django Base Site project.

Before, in my docker file, I had the following:

$VIRTUAL_ENV/bin/pip install --require-hashes -r config/requirements/${ENV_NAME}_lock.txt

Now, when I tried to switch to UV, the following didn't work:

$VIRTUAL_ENV/bin/uv pip install --require-hashes -r config/requirements/${ENV_NAME}_lock.txt

I got the following error:

error: unexpected argument '--require-hashes' found

  tip: a similar argument exists: '--requirement'

Usage: uv pip install <PACKAGE|--requirement <REQUIREMENT>|--editable <EDITABLE>> <PACKAGE|--requirement <REQUIREMENT>|--editable <EDITABLE>|--constraint <CONSTRAINT>|--override <OVERRIDE>|--extra <EXTRA>|--all-extras|--upgrade|--upgrade-package <UPGRADE_PACKAGE>|--reinstall|--reinstall-package <REINSTALL_PACKAGE>|--offline|--refresh|--refresh-package <REFRESH_PACKAGE>|--no-deps|--link-mode <LINK_MODE>|--resolution <RESOLUTION>|--prerelease <PRERELEASE>|--output-file <OUTPUT_FILE>|--index-url <INDEX_URL>|--extra-index-url <EXTRA_INDEX_URL>|--find-links <FIND_LINKS>|--no-index|--legacy-setup-py|--no-build|--no-binary <NO_BINARY>|--only-binary <ONLY_BINARY>|--config-setting <CONFIG_SETTING>|--strict|--exclude-newer <EXCLUDE_NEWER>>

For more information, try '--help'.

Taking out --require-hashes works.

@epicserve
Copy link
Author

Sorry if this is a duplicate of #474.

@charliermarsh
Copy link
Member

👍 --require-hashes is not yet supported but we definitely plan to support it.

@charliermarsh
Copy link
Member

(I think this can be merged in #474.)

@charliermarsh charliermarsh closed this as not planned Won't fix, can't repro, duplicate, stale Feb 24, 2024
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

No branches or pull requests

2 participants