-
Notifications
You must be signed in to change notification settings - Fork 29.9k
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
build: allow icu download to use sha512 over md5 #27370
Conversation
Example [
{
"url": "https://github.com/unicode-org/icu/releases/download/release-63-1/icu4c-63_1-src.zip",
"sha512": "9c42ff474834836c32f288ca26f2f8c9674bee24d46a8d85c9bc1e8c965db3a3a93fe57598acf3839abc8ca0576f0d9211be8d235979607f12d425d2ce46c3cc"
},
{
"url": "https://sourceforge.net/projects/icu/files/ICU4C/63.1/icu4c-63_1-src.zip",
"sha512": "9c42ff474834836c32f288ca26f2f8c9674bee24d46a8d85c9bc1e8c965db3a3a93fe57598acf3839abc8ca0576f0d9211be8d235979607f12d425d2ce46c3cc"
},
{
"url": "https://download.icu-project.org/files/icu4c/63.1/icu4c-63_1-src.zip",
"sha512": "9c42ff474834836c32f288ca26f2f8c9674bee24d46a8d85c9bc1e8c965db3a3a93fe57598acf3839abc8ca0576f0d9211be8d235979607f12d425d2ce46c3cc"
}
] If no hashes are in the file you get:
|
idea from #27361 - I want to update the docs to say that sha512 could be used, but want to wait for that to land first. |
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.
Thanks for this!
tools/configure.d/nodedownload.py
Outdated
# error | ||
return (None, None, availAlgos) | ||
|
||
def checkHash(targetfile, hashAlgo): | ||
"""md5sum a file. Return the hex digest.""" |
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.
oops
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.
fixed
b8eb88a
to
a461aa3
Compare
fixed commit message and python docs… |
@srl295 You pushed this commit to |
@targos yeah, i just did that. … got my process wrong … |
- ICU uses sha512 instead of md5 in some recent releases - Use hashlib.algorithms_guaranteed to choose the following algorithms: sha1 sha224 sha384 sha256 sha512 md5 - No preference as to the priority of the algorithms - This commit does not change the hash used for ICU. Fixes: #27369 Reviewed-By: Refael Ackermann <[email protected]> Reviewed-by: Ujjwal Sharma <[email protected]> Reviewed-by: Richard Lau <[email protected]> PR-URL: #27370
Landed in d04b376 |
- ICU uses sha512 instead of md5 in some recent releases - Use hashlib.algorithms_guaranteed to choose the following algorithms: sha1 sha224 sha384 sha256 sha512 md5 - No preference as to the priority of the algorithms - This commit does not change the hash used for ICU. Fixes: #27369 Reviewed-By: Refael Ackermann <[email protected]> Reviewed-by: Ujjwal Sharma <[email protected]> Reviewed-by: Richard Lau <[email protected]> PR-URL: #27370
sha1 sha224 sha384 sha256 sha512 md5
Fixes: #27369
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passes