checksum: simplify, use only sha256#10247
Conversation
|
Review period will end on 2021-01-08 at 07:54:12 UTC. |
|
There are still a few places that call |
MikeMcQuaid
left a comment
There was a problem hiding this comment.
Looks good, nice cleanup @iMichka!
brew/Library/Homebrew/exceptions.rb
Lines 627 to 643 in db0b69a
3f1f501 to
b04f500
Compare
|
All green for me, except the |
|
I would recommend this: def sha256(val)
stable.sha256(val)
endOr otherwise using |
|
Probably should try to add as few Currently looking into |
Done |
|
(You missed the |
SeekingMeaning
left a comment
There was a problem hiding this comment.
I would also recommend SeekingMeaning@c01b1cc80 but I'm not familiar with all uses of BottleSpecification#checksums so 👍 from me
|
The checksums are coming from https://github.com/Homebrew/brew/pull/10247/files#diff-bb40db554b6955f972e80737c5883dafef80ffe19b09e0ad1ceeea1cb776f694L425-L439 for this part of the code. This should be fine. This is a part of code I will rework with my follow up PRs as the logic is going to change there. |
We use only one sha type right now. Needed for Homebrew#10186
|
Review period ended. |
|
Thanks for the cleanup @iMichka! |
We use only one sha type right now.
Needed for #10186
brew stylewith your changes locally?brew typecheckwith your changes locally?brew testswith your changes locally?brew manlocally and committed any changes?