wix / AppleSimulatorUtils

A collection of command-line utils for Apple simulators.
Other
639 stars 62 forks source link

`0.9.6` was released to homebrew with incorrect checksum #96

Closed stigi closed 2 years ago

stigi commented 2 years ago

Description

We noticed that brew installing applesimutils started failing on our CI today, at the same time version 0.9.6 was released.

I can also reproduce the issue locally on my mac.

Here's the error

$ brew upgrade applesimutils
==> Upgrading 1 outdated package:
wix/brew/applesimutils 0.9.5 -> 0.9.6
==> Downloading https://github.com/wix/AppleSimulatorUtils/releases/download/0.9.6/applesimutils-0.9.6.arm64_big_sur.bottle.tar.gz
==> Downloading from https://objects.githubusercontent.com/github-production-release-asset-2e65be/86659796/ad10e0f3-1c2f-47e9-b207-32d78f54557d?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=A
######################################################################## 100.0%
Error: SHA256 mismatch
Expected: 0abd6a10f0fa5f7008799c06c59836b690ca2707bf9cb8a62095ecbd87363e6d
  Actual: 49e54d54a7ab60829b89ba9c8864d02be2a1adc2c3334575a4143d4a828cdc18
    File: /Users/ullrich/Library/Caches/Homebrew/downloads/9a2b9fdcf958d7ff5440a521a8228343a20ac3cc41bfba0d0c26790d3250ee24--applesimutils-0.9.6.arm64_big_sur.bottle.tar.gz
To retry an incomplete download, remove the file above.

Steps to Reproduce Run brew upgrade applesimutils to install version 0.9.6

Expected Behavior Checksums should match

Screenshots n/a

Environment

Additional Context n/a

stigi commented 2 years ago

Similar error (different check sums though) on Intel machines on CI

brew tap wix/brew
brew install applesimutils

==> Tapping wix/brew
Cloning into '/usr/local/Homebrew/Library/Taps/wix/homebrew-brew'...
remote: Enumerating objects: 689, done.        
remote: Counting objects: 100% (145/145), done.        
remote: Compressing objects: 100% (53/53), done.        
remote: Total 689 (delta 74), reused 144 (delta 74), pack-reused 544        
Receiving objects: 100% (689/689), 1.59 MiB | 1.63 MiB/s, done.
Resolving deltas: 100% (361/361), done.
Tapped 1 cask and 2 formulae (17 files, 1.6MB).
==> Downloading https://github.com/wix/AppleSimulatorUtils/releases/download/0.9
==> Downloading from https://objects.githubusercontent.com/github-production-rel
######################################################################## 100.0%
Error: applesimutils: SHA256 mismatch
Expected: f597cc8f4c09bf130921087565762d39eb9e79436df3ce8f5b700e372f5258bb
  Actual: 49e54d54a7ab60829b89ba9c8864d02be2a1adc2c3334575a4143d4a828cdc18
    File: /Users/distiller/Library/Caches/Homebrew/downloads/d7d2f7f7b246fd3e8fea14d09b60e2ae1338fc43a74f612a95d2ee8eff58fe2b--applesimutils-0.9.6.big_sur.bottle.tar.gz
To retry an incomplete download, remove the file above.
kingdavidmartins commented 2 years ago

same ~ M1

Error: applesimutils: SHA256 mismatch
Expected: 0abd6a10f0fa5f7008799c06c59836b690ca2707bf9cb8a62095ecbd87363e6d
Actual: 49e54d54a7ab60829b89ba9c8864d02be2a1adc2c3334575a4143d4a828cdc18
asafkorem commented 2 years ago

Thanks for the report, checking.

asafkorem commented 2 years ago

I hope this will solve your issue: https://github.com/wix/homebrew-brew/pull/18 Can you please try to reinstall applesimutils?

trevorzablocki2 commented 2 years ago

@asafkorem I think this is still happening, might need another release?

asafkorem commented 2 years ago

@trevorzablocki2 can you provide here the full error you're getting?

den-t commented 2 years ago

The same on big_sur, which is different to arm64_big_sur.

brew tap wix/brew
brew install applesimutils

==> Tapping wix/brew
Cloning into '/usr/local/Homebrew/Library/Taps/wix/homebrew-brew'...
remote: Enumerating objects: 703, done.        
remote: Counting objects: 100% (159/159), done.        
remote: Compressing objects: 100% (65/65), done.        
remote: Total 703 (delta 78), reused 149 (delta 76), pack-reused 544        
Receiving objects: 100% (703/703), 1.59 MiB | 11.92 MiB/s, done.
Resolving deltas: 100% (365/365), done.
Tapped 1 cask and 2 formulae (17 files, 1.6MB).
==> Downloading https://github.com/wix/AppleSimulatorUtils/releases/download/0.9
==> Downloading from https://objects.githubusercontent.com/github-production-rel
######################################################################## 100.0%
Error: applesimutils: SHA256 mismatch
Expected: 0abd6a10f0fa5f7008799c06c59836b690ca2707bf9cb8a62095ecbd87363e6d
  Actual: 49e54d54a7ab60829b89ba9c8864d02be2a1adc2c3334575a4143d4a828cdc18
    File: /Users/distiller/Library/Caches/Homebrew/downloads/d7d2f7f7b246fd3e8fea14d09b60e2ae1338fc43a74f612a95d2ee8eff58fe2b--applesimutils-0.9.6.big_sur.bottle.tar.gz
To retry an incomplete download, remove the file above.

Exited with code exit status 1
trevorzablocki2 commented 2 years ago

@asafkorem Yeah, my bad. It is the one @den-t is referring to.

asafkorem commented 2 years ago

@den-t @trevorzablocki2 please check now.

marcobeltempo commented 2 years ago

@asafkorem can confirm it's working on big_sur. Thanks for the quick fix

asafkorem commented 2 years ago

Thanks @marcobeltempo I'm still checking how to solve this issue, apparently the checksums are different between bottles, and I'm not sure how to locate them. Last time we used the same checksum for all bottles without any issue :/

asafkorem commented 2 years ago

Sorry for the temporary inconvenience. Please let me know if you are still having a problem.

den-t commented 2 years ago

@asafkorem as easy as:

sha256sum applesimutils-0.9.6.*                    
49e54d54a7ab60829b89ba9c8864d02be2a1adc2c3334575a4143d4a828cdc18  applesimutils-0.9.6.arm64_big_sur.bottle.tar.gz
49e54d54a7ab60829b89ba9c8864d02be2a1adc2c3334575a4143d4a828cdc18  applesimutils-0.9.6.big_sur.bottle.tar.gz
0abd6a10f0fa5f7008799c06c59836b690ca2707bf9cb8a62095ecbd87363e6d  applesimutils-0.9.6.catalina.bottle.tar.gz
49e54d54a7ab60829b89ba9c8864d02be2a1adc2c3334575a4143d4a828cdc18  applesimutils-0.9.6.high_sierra.bottle.tar.gz
49e54d54a7ab60829b89ba9c8864d02be2a1adc2c3334575a4143d4a828cdc18  applesimutils-0.9.6.mojave.bottle.tar.gz
49e54d54a7ab60829b89ba9c8864d02be2a1adc2c3334575a4143d4a828cdc18  applesimutils-0.9.6.sierra.bottle.tar.gz

Not sure why catalina is different.

asafkorem commented 2 years ago

Oh, great. Thanks @den-t, I pushed a full fix for that. Should be fine now.

kingdavidmartins commented 2 years ago

Thanks!! also resolved for me!