Homebrew / homebrew-cask

🍻 A CLI workflow for the administration of macOS applications distributed as binaries
https://brew.sh
BSD 2-Clause "Simplified" License
20.73k stars 10.6k forks source link

Error: ultimate-vocal-remover: SHA256 mismatch #156849

Closed 0xdevalias closed 9 months ago

0xdevalias commented 9 months ago

Not sure if something changed since this PR, but seems to be causing an error now:

==> Upgrading ultimate-vocal-remover
==> Downloading https://github.com/Anjok07/ultimatevocalremovergui/releases/download/v5.6/Ultimate_Vocal_Remover_v5_6_MacOS_x86_64.dmg
==> Downloading from https://objects.githubusercontent.com/github-production-release-asset-2e65be/281229404/a057e323-9734-4cb1-a194-5297b1d80492?REDACTED
######################################################################################################################################################################################################################################################### 100.0%
==> Purging files for version 5.6 of Cask ultimate-vocal-remover
Error: ultimate-vocal-remover: SHA256 mismatch
Expected: 99f4528c6c98e82c441045b34d796ee1a36d6bc5ffe32ff6547da0a8514d9e0c
  Actual: 4f9b9dcaecab7cc7c03e1c36b4fc21a1e77f6f808067f42d7767b06c94d3aba1
    File: /Users/devalias/Library/Caches/Homebrew/downloads/ef33bbb575807f46970cceb0b75bcd61d1166e3b38734e2e9f680c356d7d3841--Ultimate_Vocal_Remover_v5_6_MacOS_x86_64.dmg
To retry an incomplete download, remove the file above.

This issue sounds like there have been similar hash based issues in the past possible?


Running brew bump-cask-pr ultimate-vocal-remover --version 5.6 --force locally gives the following output:

⇒ brew bump-cask-pr ultimate-vocal-remover --version 5.6 --force
Warning: These closed pull requests may be duplicates:
ultimate-vocal-remover 5.6 https://github.com/Homebrew/homebrew-cask/pull/156160
==> Downloading https://github.com/Anjok07/ultimatevocalremovergui/releases/download/v5.6/Ultimate_Vocal_Remover_v5_6_MacOS_x86_64.dmg
Already downloaded: /Users/devalias/Library/Caches/Homebrew/downloads/ef33bbb575807f46970cceb0b75bcd61d1166e3b38734e2e9f680c356d7d3841--Ultimate_Vocal_Remover_v5_6_MacOS_x86_64.dmg
==> Downloading https://github.com/Anjok07/ultimatevocalremovergui/releases/download/v5.6/Ultimate_Vocal_Remover_v5_6_MacOS_arm64.dmg
==> Downloading from https://objects.githubusercontent.com/github-production-release-asset-2e65be/281229404/e83e71f7-cf71-4bec-b82a-0b2bd9ee1c4b?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20231004%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20231004T032827Z&X-Amz-Expires=300&X-Amz-Signature=8059848df834350afdaa31f7c07edef26fe1249c07b52e7e76b99fa314c01fed&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=281229404&response-content-disposition=attachmen
######################################################################################################################################################################################################################################################### 100.0%
==> replace /version\s+["']5\.6["']/m with "version \"5.6\""
==> replace "99f4528c6c98e82c441045b34d796ee1a36d6bc5ffe32ff6547da0a8514d9e0c" with "4f9b9dcaecab7cc7c03e1c36b4fc21a1e77f6f808067f42d7767b06c94d3aba1"
==> replace "276b1bbcf0e5de3b25df53b0855f4ae0a37af2ecaf0c10f59389ec53ca3b4513" with "c3e7641413c23122d0f27356a2a3c21e776ab350f123d8f939bb7f8ffacd4c82"
==> Downloading https://github.com/Anjok07/ultimatevocalremovergui/releases/download/v5.6/Ultimate_Vocal_Remover_v5_6_MacOS_x86_64.dmg
Already downloaded: /Users/devalias/Library/Caches/Homebrew/downloads/ef33bbb575807f46970cceb0b75bcd61d1166e3b38734e2e9f680c356d7d3841--Ultimate_Vocal_Remover_v5_6_MacOS_x86_64.dmg

1 file inspected, no offenses detected
remote.0xdevalias.url git@github.com:0xdevalias/homebrew-cask.git
M Casks/u/ultimate-vocal-remover.rb
Switched to a new branch 'bump-ultimate-vocal-remover-5.6'
[bump-ultimate-vocal-remover-5.6 526e923891] ultimate-vocal-remover 5.6
 1 file changed, 2 insertions(+), 2 deletions(-)

..snip..

So it seems like those are the latest/correct hashes to be used.

Originally posted by @0xdevalias in https://github.com/Homebrew/homebrew-cask/issues/156160#issuecomment-1746070203

0xdevalias commented 9 months ago

This is the diff of the changed hashes:

-  sha256 arm:   "276b1bbcf0e5de3b25df53b0855f4ae0a37af2ecaf0c10f59389ec53ca3b4513",
-         intel: "99f4528c6c98e82c441045b34d796ee1a36d6bc5ffe32ff6547da0a8514d9e0c"
+  sha256 arm:   "c3e7641413c23122d0f27356a2a3c21e776ab350f123d8f939bb7f8ffacd4c82",
+         intel: "4f9b9dcaecab7cc7c03e1c36b4fc21a1e77f6f808067f42d7767b06c94d3aba1"
miccal commented 9 months ago

https://github.com/Homebrew/homebrew-cask/pull/156850