Skip to content

Commit

Permalink
utils/curl: fix Digest::SHA256 typo
Browse files Browse the repository at this point in the history
Should fix the error seen in Homebrew/homebrew-core#153647 [^1]. This
was introduced in e5d656b and `Digest::256` seems to be the intended
one.

[^1]: https://github.com/Homebrew/homebrew-core/actions/runs/6805354565/job/18504732312?pr=153647#step:4:36
  • Loading branch information
ZhongRuoyu committed Nov 10, 2023
1 parent a808e30 commit ac7a1bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Library/Homebrew/utils/curl.rb
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,7 @@ def curl_http_content_headers_and_checksum(
end
end
file_contents = File.read(T.must(file.path), **open_args)
file_hash = Digest::SHA2.hexdigest(file_contents) if hash_needed
file_hash = Digest::SHA256.hexdigest(file_contents) if hash_needed
end

{
Expand Down

0 comments on commit ac7a1bf

Please sign in to comment.