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

pip-sync doesn't checked if a remote url distribution has changed #475

Open
konstin opened this issue Nov 21, 2023 · 2 comments
Open

pip-sync doesn't checked if a remote url distribution has changed #475

konstin opened this issue Nov 21, 2023 · 2 comments
Labels
bug Something isn't working help wanted Contribution especially encouraged security

Comments

@konstin
Copy link
Member

konstin commented Nov 21, 2023

When using a remote distribution with pip-sync, e.g. theano @ https://github.com/Theano/Theano/archive/master.zip, we will accept any distribution that was installed from that url instead of checking that the installed distribution matches the remote distribution.

direct_url.json has a hashes key for remote distributions we can use to implement this correctly: When downloading a distribution, record its hash (sha256 probably) in the cache and check whether it matches the entry in direct_url.json. On each run (both pip-sync and pip-compile), check if the remote distribution changed and in that case, invalid the cached hash and fetch the metadata again (pip-compile) or reinstall (pip-sync)

@zanieb
Copy link
Member

zanieb commented Jul 1, 2024

@konstin is this still an issue?

@zanieb zanieb added bug Something isn't working security labels Jul 1, 2024
@charliermarsh
Copy link
Member

Yup!

@zanieb zanieb added the help wanted Contribution especially encouraged label Jul 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Contribution especially encouraged security
Projects
None yet
Development

No branches or pull requests

3 participants