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

fixes bug with binary verification #5627

Merged
merged 4 commits into from
Apr 26, 2020

Conversation

farazdagi
Copy link
Contributor

@farazdagi farazdagi commented Apr 26, 2020

What type of PR is this?

Bug fix

What does this PR do? Why is it needed?

  • fixes bug where we were returning result of function call instead of a number (0-255 is expected return value from a function)
  • switches to HEREDOC syntax for multi-line message; @prestonvanloon used \ , for line delimiters but they obviously got trimmed by IDE (we can instruct Goland not to trim spaces, but that's too of hacky way to do it). So, I've changed things to use heredoc, which doesn't require any particular IDE config.

Which issues(s) does this PR fix?

Fixes #5625

Other notes for review
Now, when you run the script with unmet dependency, you'll get:
image

And binary will refuse to start! You have either to disable verification, or install deps,

When, checksum is wrong:
image

You can also force skipping checksum checks:
image

@farazdagi farazdagi added Ready For Review A pull request ready for code review OK to merge labels Apr 26, 2020
@farazdagi farazdagi requested a review from a team as a code owner April 26, 2020 10:53
@farazdagi farazdagi self-assigned this Apr 26, 2020
Copy link
Member

@prestonvanloon prestonvanloon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Amazing thank you!

@prylabs-bulldozer prylabs-bulldozer bot merged commit 0806807 into master Apr 26, 2020
@delete-merged-branch delete-merged-branch bot deleted the fix-prysm-sh-verification-bug branch April 26, 2020 14:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Ready For Review A pull request ready for code review
Projects
None yet
2 participants