mvp / uhubctl

uhubctl - USB hub per-port power control
Other
2.23k stars 232 forks source link

Returned `brew install` error #490

Closed liberato-whisper closed 1 year ago

liberato-whisper commented 1 year ago

https://github.com/mvp/uhubctl/issues/489 seems to have returned and reverted to the old hash?

% brew reinstall uhubctl
==> Fetching mvp/uhubctl/uhubctl
==> Downloading https://github.com/mvp/uhubctl/archive/v2.5.0.tar.gz
==> Downloading from https://codeload.github.com/mvp/uhubctl/tar.gz/refs/tags/v2.5.0
######################################################################## 100.0%
Error: SHA256 mismatch
Expected: 7be75781b709c36c03c68555f06347d70e5f4e8fd2d17fd481f20626fb4c6038
  Actual: d4452252f7862f7a45dd9c62f2ea7cd3a57ab5f5ab0e54a857d4c695699bbba3
    File: /Users/generic-user/Library/Caches/Homebrew/downloads/ab52b9ee5f8836cd159b02e71fa74cee5ae01ca941fb78e1c99bfc79c314d6cb--uhubctl-2.5.0.tar.gz
To retry an incomplete download, remove the file above.
mvp commented 1 year ago

This is quite frustrating. I did this:

$ brew reinstall uhubctl
==> Fetching mvp/uhubctl/uhubctl
==> Downloading https://github.com/mvp/uhubctl/archive/v2.5.0.tar.gz
Already downloaded: /Users/mvp/Library/Caches/Homebrew/downloads/ab52b9ee5f8836cd159b02e71fa74cee5ae01ca941fb78e1c99bfc79c314d6cb--uhubctl-2.5.0.tar.gz
==> Reinstalling mvp/uhubctl/uhubctl
==> make
🍺  /usr/local/Cellar/uhubctl/2.5.0: 6 files, 99KB, built in 5 seconds
==> Running `brew cleanup uhubctl`...
Disable this behaviour by setting HOMEBREW_NO_INSTALL_CLEANUP.
Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`).
$

then removed local cached file and retried again:

$ rm /Users/mvp/Library/Caches/Homebrew/downloads/ab52b9ee5f8836cd159b02e71fa74cee5ae01ca941fb78e1c99bfc79c314d6cb--uhubctl-2.5.0.tar.gz

$ brew reinstall uhubctl
==> Fetching mvp/uhubctl/uhubctl
==> Downloading https://github.com/mvp/uhubctl/archive/v2.5.0.tar.gz
==> Downloading from https://codeload.github.com/mvp/uhubctl/tar.gz/refs/tags/v2.5.0
######################################################################## 100.0%
Error: SHA256 mismatch
Expected: 7be75781b709c36c03c68555f06347d70e5f4e8fd2d17fd481f20626fb4c6038
  Actual: d4452252f7862f7a45dd9c62f2ea7cd3a57ab5f5ab0e54a857d4c695699bbba3
    File: /Users/mvp/Library/Caches/Homebrew/downloads/ab52b9ee5f8836cd159b02e71fa74cee5ae01ca941fb78e1c99bfc79c314d6cb--uhubctl-2.5.0.tar.gz
To retry an incomplete download, remove the file above.

Something is changing on github side. I guess I was too quick to fix it, will revert last commit 😢