wix / AppleSimulatorUtils

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

Error when upgrading to 0.9.4 #84

Closed billburgess closed 3 years ago

billburgess commented 3 years ago

Description I took the update to 0.9.3 this morning without issue. The hot fix to 0.9.4 throws an error.

Steps to Reproduce Steps to reproduce the behavior: brew upgrade applesimutils

Expected Behavior Upgrade should complete without error.

Output

brasky@Bills-MBP ~ % brew upgrade applesimutils                                                                                                                                    
==> Upgrading 1 outdated package:
wix/brew/applesimutils 0.9.3 -> 0.9.4
==> Upgrading wix/brew/applesimutils
  0.9.3 -> 0.9.4 

==> Downloading https://github.com/wix/AppleSimulatorUtils/releases/download/0.9.4/applesimutils-0.9.4.big_sur.bottle.tar.gz
==> Downloading from https://github-releases.githubusercontent.com/86659796/67bf8817-a090-4fe3-aaa6-020ed85cc91d?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20210720%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20210720T142654Z&X-Amz-Expires=300&X-Amz-Signature=aaa85ea38d3
######################################################################## 100.0%
Error: SHA256 mismatch
Expected: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
  Actual: a903f253d6789f39b8930bc365fe958a9c526d63a23ae33a4465893cf9353472
    File: /Users/brasky/Library/Caches/Homebrew/downloads/c984cf4ae18c751023d2af2e21f7738c8290d93b8432d628e220e21d6d8205bf--applesimutils-0.9.4.big_sur.bottle.tar.gz
To retry an incomplete download, remove the file above.
brasky@Bills-MBP ~ % 

I did remove the file and try again and I get the same error.

Environment

stigi commented 3 years ago

We reran our CI jobs that failed with the same error and they pass now. The issue seems to have been a transient one.

billburgess commented 3 years ago

Agreed, I tried again and it is passing. Thanks for the update.

noomorph commented 3 years ago

Just in case if someone will get this issue locally, try running brew update before upgrading applesimutils.

We only recently took over the deployment scripts, and it seems that one of the scripts has an error in calculating SHA256 sums. Today I had to recalculate shasums manually and patch our brew recipe in an extra commit.

You might have been unlucky to get between those two events, and your builds could have been flapping for a half an hour or so. Sorry for the inconvenience - we really wanted to ship _setLocation__ functionality, so that Detox no longer depends on fbsimctl