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

brew install for version 0.8.0 -- SHA256 mismatch error #225

Open
matthewzoks opened this issue Oct 19, 2021 · 5 comments
Open

brew install for version 0.8.0 -- SHA256 mismatch error #225

matthewzoks opened this issue Oct 19, 2021 · 5 comments

Comments

@matthewzoks
Copy link

Error: SHA256 mismatch
Expected: 2d5368a3f17ddd95146a5b691775ad0f233d230dbcfe938fbae5e2a33a3b6b22
Actual: 64f29e4c137c7dab93f3311f31040fc456ec96ea5567b943c93282da0fccac21

Tried removing the temp download file and brew untap oktadeveloper/tap and brew reinstall okta.
No luck with any of them

@bdemers
Copy link
Contributor

bdemers commented Oct 19, 2021

Hey @matthewzoks!

Thanks for the report. I wasn't able to reproduce this. I double-checked the expected hash: 2d5368a3f17ddd95146a5b691775ad0f233d230dbcfe938fbae5e2a33a3b6b22

I already had that version installed, so I updated/upgraded brew, untapped (and then manually removed any leftover bits in: /usr/local/Homebrew/Library/Taps/)

Then ran the following successfully: brew install --cask oktadeveloper/tap/okta

NOTE: You shouldn't need to do any manual cleanup or untapping, I was just trying to reproduce the issue.

The cask downloads the release from GitHub:
https://github.com/okta/okta-cli/releases/download/okta-cli-tools-#{version}/okta-cli-macos-#{version}-x86_64.zip

I'm guessing a couple of things could have happened, a GitHub CDN glitch, or a redirect that wasn't followed (GitHub releases also uses S3).

If you are still seeing the issue let us know! include your OS and brew versions, and if possible your general location (it may help narrow down the issue to a CDN)

@matthewzoks
Copy link
Author

matthewzoks commented Nov 9, 2021 via email

@bdemers
Copy link
Contributor

bdemers commented Nov 9, 2021

Short term fix, you can just download the release: https://github.com/okta/okta-cli/releases
Unzip it and stick the binary on your path.

I don't want to waste more of your time, but I'd love to figure out why you are seeing this problem. Do you have any virus scanners or (virus scanning firewalls) on your network?

@matthewzoks
Copy link
Author

matthewzoks commented Nov 9, 2021 via email

@bdemers
Copy link
Contributor

bdemers commented Nov 9, 2021

Thanks for the follow-up! I'm guessing it's related. It could also be related to the fact that we are currently using a zip format instead of tarball.
(Again just a guess though).

I'm going to close the issue, but if you see this again, or you ever run into this with a brew install for a different cask, please add a note here!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants