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

Make hash-xdr.h not fail silently during build #4014

Merged
merged 1 commit into from
Nov 8, 2023

Conversation

leighmcculloch
Copy link
Member

@leighmcculloch leighmcculloch commented Nov 6, 2023

What

In hash-xdr.h explicitly use bash and fail early on fail or pipefail at any command in the script.

Why

Without enabling errexit or pipefail the script will continue to run as if nothing if an error occurs.

A case this happened to me recently is when sha256sum is not installed, as is the case commonly on macOS systems.

pipefail is not technically part of posix as far as I know, so I changed the hash-bang to reference bash explicitly. I noticed we use the bash hash-bang in another script in this repo too so I assume that is okay.

Close #4013

@sisuresh
Copy link
Contributor

sisuresh commented Nov 6, 2023

Looks like this will resolve #3707?

@leighmcculloch
Copy link
Member Author

Looks like this will resolve #3707?

Yes I believe so. Looks like the same issue.

@MonsieurNicolas
Copy link
Contributor

r+ 5dc4d9e

@latobarita latobarita merged commit 4d97f07 into stellar:master Nov 8, 2023
10 checks passed
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

Successfully merging this pull request may close these issues.

Compiling on mac produces a broken binary (Version: v20.0.0-rc.2.2)
4 participants