try icon indicating copy to clipboard operation
try copied to clipboard

Brew - Formula reports different checksum

Open byt3m4st3r opened this issue 2 months ago • 3 comments

Error: Formula reports different checksum:  151778fdd07adac23fb021d2d84bd0756e0d626a97498503da24413bfdd72c28
       SHA-256 checksum of downloaded file: a74e17d0c4ed29998d2a07e86872409b9e04eadc15ddb4e2ef1b7731648ba588

byt3m4st3r avatar Dec 03 '25 07:12 byt3m4st3r

Just to add context,

❯ brew tap tobi/try https://github.com/tobi/try
...
❯ brew install try

==> Fetching downloads for: try
✘ Formula try (main)                                                                                                                                           [Verifying   179.8KB/  0.0 B]
Error: Formula reports different checksum:  151778fdd07adac23fb021d2d84bd0756e0d626a97498503da24413bfdd72c28
       SHA-256 checksum of downloaded file: 2bd796fb0c5676403ef7c111ba49dcd0fdb8fc7e9848438afc34a4a32bfdd042

nnutter avatar Dec 16 '25 18:12 nnutter

For this to be fixed this repo would really have to start tagging releases.

nnutter avatar Dec 16 '25 18:12 nnutter

Temporary workaround:

fetch the currrent tarball and compute its sha:

curl -L "https://github.com/tobi/try/archive/refs/heads/main.tar.gz" -o /tmp/try-main.tar.gz
shasum -a 256 /tmp/try-main.tar.gz

edit the formula, temporary as it will break again as main branch moves, and replace the sha256 you computed:

brew edit try

Install the modified formula:

brew install --formula try

michelinux avatar Jan 09 '26 21:01 michelinux