rcmdnk / homebrew-file

Brewfile manager for Homebrew
http://homebrew-file.readthedocs.io/
MIT License
356 stars 29 forks source link

Hash mismatch in latest homebrew formula #291

Closed kitschpatrol closed 2 weeks ago

kitschpatrol commented 1 month ago

Thanks for homebrew-file, it is excellent.

I just noticed that the hash in the 9.2.0 formula seems to have an ls prepended, otherwise it matches what I'm seeing from the file:

curl -sL https://github.com/rcmdnk/homebrew-file/archive/v9.2.0.tar.gz -o v9.2.0.tar.gz && shasum -a 256 v9.2.0.tar.gz
1548289abd62b42468df93e3f9c2784f561e0fcc934a18a4858a20d05259d98a
Drew-Daniels commented 1 month ago

Just ran into the same issue. Seeing this when running brew upgrade rcmdnk/file/brew-file

❯ brew upgrade rcmdnk/file/brew-file
==> Upgrading 1 outdated package:
rcmdnk/file/brew-file 9.1.4 -> 9.2.0
==> Fetching rcmdnk/file/brew-file
==> Downloading https://github.com/rcmdnk/homebrew-file/archive/v9.2.0.tar.gz
Already downloaded: /Users/drew/Library/Caches/Homebrew/downloads/aac5e9d0ffb1b67072f84315de2c2619eb6801c515e0beeb73f71f62e1ee8033--homebrew-file-9.2.0.tar.gz
Error: SHA256 mismatch
Expected: ls1548289abd62b42468df93e3f9c2784f561e0fcc934a18a4858a20d05259d98a
  Actual: 1548289abd62b42468df93e3f9c2784f561e0fcc934a18a4858a20d05259d98a
    File: /Users/drew/Library/Caches/Homebrew/downloads/aac5e9d0ffb1b67072f84315de2c2619eb6801c515e0beeb73f71f62e1ee8033--homebrew-file-9.2.0.tar.gz
To retry an incomplete download, remove the file above.

~
rcmdnk commented 1 month ago

Sorry for the trouble! It is fixed. Could you please try brew update.

Drew-Daniels commented 1 month ago

Worked for me! Thanks @rcmdnk