-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
Use sha512 instead of md5 #74
Use sha512 instead of md5 #74
Conversation
Hi @Ninetainedo, I'm your friendly neighborhood Microsoft Pull Request Bot (You can call me MSBOT). Thanks for your contribution! The agreement was validated by Microsoft and real humans are currently evaluating your PR. TTYL, MSBOT; |
…-SHA512-instead-of-MD5
Updated doctest Updated mpir
Every portfile currently available on master is updated to use SHA512 instead of MD5. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some small changes not directly regarding hashing
cmake_parse_arguments(vcpkg_download_distfile "" "${oneValueArgs}" "" ${ARGN}) | ||
|
||
if(EXISTS ${DOWNLOADS}/${vcpkg_download_distfile_FILENAME}) | ||
message(STATUS "Using cached ${DOWNLOADS}/${vcpkg_download_distfile_FILENAME}") | ||
file(MD5 ${DOWNLOADS}/${vcpkg_download_distfile_FILENAME} FILE_HASH) | ||
if(NOT FILE_HASH MATCHES ${vcpkg_download_distfile_MD5}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I updated this because it failed when vcpkg_download_distfile_MD5
was empty.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch!
message(FATAL_ERROR | ||
"File does not have expected hash: ${DOWNLOADS}/${vcpkg_download_distfile_FILENAME}\n" | ||
" ${FILE_HASH} <> ${vcpkg_download_distfile_MD5}\n" | ||
" '${FILE_HASH}' <> '${vcpkg_download_distfile_SHA512}'\n" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Those quotes allow the user to see empty strings in an easier way.
Looks great! Thanks! |
DjInterop 0.19.1
Should fix #61 for every library that was pushed at the moment of the fork.