try
try copied to clipboard
Brew - Formula reports different checksum
Error: Formula reports different checksum: 151778fdd07adac23fb021d2d84bd0756e0d626a97498503da24413bfdd72c28
SHA-256 checksum of downloaded file: a74e17d0c4ed29998d2a07e86872409b9e04eadc15ddb4e2ef1b7731648ba588
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
For this to be fixed this repo would really have to start tagging releases.
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