-
Notifications
You must be signed in to change notification settings - Fork 4k
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(cli): always exit with 0 on cdk diff #4650
Conversation
Add the `--fail` flag to exit with 1 if there's a diff. Closes aws#2111 BREAKING CHANGE: `cdk diff` now exits with 0 even when there's a diff, use `--fail` to exit with 1.
Thanks so much for taking the time to contribute to the AWS CDK ❤️ We will shortly assign someone to review this pull request and help get it
|
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
Thank you for contributing! Your pull request is now being automatically merged. |
This change includes a breaking change in our stable APIs. We will have to discuss this furthre in order to make a decision to actually break. This reverts commit 4f765b2.
This change includes a breaking change in our stable APIs. We will have to discuss this furthre in order to make a decision to actually break. This reverts commit 4f765b2.
@jogold since this is breaking the stable CLI API, we decided to revert this PR and I would like to propose the following change (let me know if this is acceptable):
This way, new projects will get the new behavior and existing projects will not experience a break. What do you think? @RomainMuller @rix0rrr - would love your input here. |
This sounds great. See my comment on the reverting PR. |
Is this syntax inside |
Not sure to be honest... I think some custom handling will be needed, but not sure. |
I suggest splitting this into 2 different PR's: one for the |
Add the
--fail
flag to exit with 1 if there's a diff.Closes #2111
BREAKING CHANGE:
cdk diff
now exits with 0 even when there's a diff, use--fail
to exit with 1.By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license