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

fix: exit with non-zero exit code if there are compilation errors #442

Merged
merged 1 commit into from
Apr 8, 2019

Conversation

eladb
Copy link
Contributor

@eladb eladb commented Apr 8, 2019

In #383 we modified the compiler to continue jsii validation despite
compilation errors but did not propagate the fact that there were
compilation errors.

This resulted in "jsii" exiting with a 0 exit code even in case
of errors.

Fixes #441

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

In #383 we modified the compiler to continue jsii validation despite
compilation errors but did not propagate the fact that there were
compilation errors.

This resulted in "jsii" exiting with a 0 exit code even in case
of errors.

Fixes #441
@eladb eladb requested a review from a team as a code owner April 8, 2019 22:01
Copy link
Contributor

@skinny85 skinny85 left a comment

Choose a reason for hiding this comment

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

Looks fine given my (very) limited JSII knowledge.

eladb pushed a commit to aws/aws-cdk that referenced this pull request Apr 8, 2019
Until aws/jsii#442 is released
we must fail builds on compilation errors. This is a temporary
workaround for this issue (if there is something in stdout
we consider that a compilation error).
@eladb eladb merged commit 6265bf6 into master Apr 8, 2019
@eladb eladb deleted the benisrae/jsii-fail-on-error branch April 8, 2019 22:12
eladb pushed a commit to aws/aws-cdk that referenced this pull request Apr 8, 2019
Until aws/jsii#442 is released
we must fail builds on compilation errors. This is a temporary
workaround for this issue (if there is something in stdout
we consider that a compilation error).
eladb pushed a commit to aws/aws-cdk that referenced this pull request Apr 8, 2019
Until aws/jsii#442 is released
we must fail builds on compilation errors. This is a temporary
workaround for this issue (if there is something in stdout
we consider that a compilation error).
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.

2 participants