Skip to content

Fail build if there are non-zero exit codes in build scripts#79

Open
piemonkey wants to merge 1 commit intomu-semtech:masterfrom
piemonkey:fail-build-on-error
Open

Fail build if there are non-zero exit codes in build scripts#79
piemonkey wants to merge 1 commit intomu-semtech:masterfrom
piemonkey:fail-build-on-error

Conversation

@piemonkey
Copy link

Uses set -eo to stop a build if any part of the build-production script returns a non-zero code, even if it's part of a series of pipes. This can be turned off for particular parts of the scripts if necessary, but it seems like a sensible default.

This caused a problem with a build in GN as a dependency problem did not fail the build but produced an image that would not start.

Uses `set -eo` to stop a build if any part of the `build-production`
script returns a non-zero code, even if it's part of a series of pipes.
This can be turned off for particular parts of the scripts if necessary,
but it seems like a sensible default.
@piemonkey piemonkey force-pushed the fail-build-on-error branch from dd3411e to 04bbbf0 Compare February 4, 2026 15:34
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.

1 participant