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

-u doesn’t update all? #139

Open
jenstroeger opened this issue Mar 19, 2022 · 0 comments
Open

-u doesn’t update all? #139

jenstroeger opened this issue Mar 19, 2022 · 0 comments

Comments

@jenstroeger
Copy link

jenstroeger commented Mar 19, 2022

Thank you for this useful tool!

Without digging deeper, I just noticed that given a fresh requirements.txt file (i.e. without any hashes) the -u doesn’t actually add hashes to all entries. Seemingly random ones are left out, but when I run them in the command line they’re added to the requirements.txt just fine… 🤔 That’s in both synchronous download mode, and parallel.

Have you noticed that behavior?

For the time being I use

touch requirements.txt  # Because the file needs to exists, else hashin fails.
for p in `pip list --format freeze`; do hashin --verbose $p; done

which adds the hashes for all of the packages listed in requirements.txt.

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

1 participant