Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to update Homebrew SHA256?

Tags:

This seems like a very noob question but I can't find an answer anywhere!

I'm very new to developing packages for Homebrew but when I edit my formula and come to update my package I get the following error

Error: SHA256 mismatch 

My question is, how do I generate the expected SHA256 value?

like image 605
Alex Chesters Avatar asked Sep 19 '15 22:09

Alex Chesters


1 Answers

After editing the formula, you can run brew fetch your-formula --build-from-source to fetch the tarball and display the new checksum. If you've already downloaded the tarball somewhere, you can calculate the hash with openssl sha256 < some_tarball.tar.gz or shasum -a 256 some_tarball.tar.gz.

like image 118
Tim Smith Avatar answered Oct 11 '22 11:10

Tim Smith