trufae / Therm

An iTerm2 fork with focus on minimalism and better defaults
GNU General Public License v2.0
300 stars 9 forks source link

Brew SHA256 mismatch #80

Closed jlongman closed 2 months ago

jlongman commented 2 months ago

Apologies if you don't maintain the Brew resources as well, but upon brew install therm:

± brew install therm
==> Downloading https://github.com/trufae/Therm/releases/download/0.6.4/Therm-0.6.4.zip
==> Downloading from https://objects.githubusercontent.com/github-production-release-asset-2e65be/104355494/c9c8d4a5-2e23-4936-8f7d-e5169070649d?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-A
##...## 100.0%
Error: SHA256 mismatch
Expected: 96ea558143ae60de68eecbfcd9e70aaeab2901d852189ef364ed2e6fc269d055
  Actual: 30b1c67a1d297f5e05de47faa66d6cf118c5a450aac2f222098e4fb1cf80d650
    File: /Users/me/Library/Caches/Homebrew/downloads/56649bcaba9bafb6c9437be368e2cc21b71e1657270394ec7290b1ca61eb0f7e--Therm-0.6.4.zip
To retry an incomplete download, remove the file above.

I did delete the file and retry just-in-case but the same issue persisted.

Looking at https://formulae.brew.sh/cask/therm the 96ea..., not 30b1c..., appears to be authorative:

trufae commented 2 months ago

Nope im not maintaining that package, you can probably submit a PR fixing the sha256, ive updated the blob the very same day the release was done because the previous zip was broken. But seems like brew is faster

jlongman commented 2 months ago

So I re-ran the brew command today and it worked, then I got paranoid so I downloaded it from here and:

 % sha256sum ~/Downloads/Therm-0.6.4.zip                                                                                                   mv-configs/override (master ⚡) MV-MB-003
**30b1c67a1d297f5e05de47faa66d6cf118c5a450aac2f222098e4fb1cf80d650**  /Users/me/Downloads/Therm-0.6.4.zip
 % sha256sum  /Users/me/Library/Caches/Homebrew/downloads/56649bcaba9bafb6c9437be368e2cc21b71e1657270394ec7290b1ca61eb0f7e--Therm-0.6.4.zip
**30b1c67a1d297f5e05de47faa66d6cf118c5a450aac2f222098e4fb1cf80d650**  /Users/me/Library/Caches/Homebrew/downloads/56649bcaba9bafb6c9437be368e2cc21b71e1657270394ec7290b1ca61eb0f7e--Therm-0.6.4.zip

So it appears someone noticed and did the work. Thanks go out to them (and you!).

Anyways, I'm happy to checkout Therm now!

trufae commented 2 months ago

Cool thank you!