Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sha mismatch on latest release reported in BREW #128

Closed
abuxton opened this issue Jul 28, 2021 · 2 comments · Fixed by #132
Closed

sha mismatch on latest release reported in BREW #128

abuxton opened this issue Jul 28, 2021 · 2 comments · Fixed by #132
Assignees
Labels
bug Something isn't working

Comments

@abuxton
Copy link

abuxton commented Jul 28, 2021

Describe the bug
Error: SHA256 mismatch on latest release when installing with Brew.

To Reproduce
Steps to reproduce the behavior:

  1. '.run brew upgrade'
  2. See error

Expected behavior
SHA not to mismatch

Screenshots

==> Downloading https://github.com/shipyard-run/shipyard/releases/download/v0.3.18/shipyard_0.3.18_Darwin_x86_64.zip
==> Downloading from https://github-releases.githubusercontent.com/224637580/25500564-3b7f-4672-9cc1-2d815bd91dea?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20210728%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20210728T095349Z&X-Amz-Expires=300&X-Amz-Signature=814a989afcce7ec4e0a944257903c57b8e59416b08d7ed8b4436608c9f71b099&X-Amz-Sig
######################################################################## 100.0%
Error: SHA256 mismatch
Expected: 4909b3de2d392a010564c980a47d16695f0fff433ec0d42984cfefbe18b8877d
  Actual: 47e53477158da6e8ee2de6ca27fc2af66b0d3f093449e21564ffda4dbbf06c7f
    File: /Users/abuxton/Library/Caches/Homebrew/downloads/0a47059f075be3c2ee9ad9d5e3f1f7495e34fbe06ffe7918748cf7c2c53dceb3--shipyard_0.3.18_Darwin_x86_64.zip
To retry an incomplete download, remove the file above.
❯ brew info shipyard
shipyard-run/repo/shipyard: stable 0.3.18

Desktop (please complete the following information):

  • OS: [e.g. iOS] OSX BigSur
  • Browser [e.g. chrome, safari] N/A
  • Version [e.g. 22] 3.18

Additional context
Add any other context about the problem here.

@nicholasjackson
Copy link
Contributor

Ah, thanks, this is because of the OSX notarized binary, Go releaser creates the Sha but the apple notarize service will modify this and therefore the sha is invalid.

Will fix this now.

@nicholasjackson
Copy link
Contributor

I have temporarily corrected the SHAs in the brew repo and tested them on my mac, Shipyard seems to install and run correctly.

➜ shipyard version
Current Version: 0.3.18

Usage:
  shipyard version [flags]
  shipyard version [command]

Available Commands:
  install     Install a Shipyard version
  list        List the available Shipyard versions

Flags:
  -h, --help   help for version

Use "shipyard version [command] --help" for more information about a command.


### For help and support join our community on Discord: https://discord.gg/ZuEFPJU69D ###
➜ codesign -vvv --deep --strict /usr/local/Cellar/shipyard/0.3.18/bin/shipyard
/usr/local/Cellar/shipyard/0.3.18/bin/shipyard: valid on disk
/usr/local/Cellar/shipyard/0.3.18/bin/shipyard: satisfies its Designated Requirement

I am currently working on a custom GitHub actions workflow so that GoReleaser does not create the GitHub release and Brew commit. Should have this done in a day or two before the next release.

@nicholasjackson nicholasjackson self-assigned this Jul 28, 2021
@nicholasjackson nicholasjackson added the bug Something isn't working label Jul 28, 2021
@nicholasjackson nicholasjackson linked a pull request Aug 9, 2021 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants