-
Notifications
You must be signed in to change notification settings - Fork 440
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): parse JSON output #774
Conversation
33ac141
to
4c926ea
Compare
We'll need to supply the We also probably aren't yet at a point where we can drop support for < 0.15.3, so either need to be explicit about when to parse JSON or try always and fall back to old behavior on failure. |
4e8866c
to
0839873
Compare
Looks like the cli fails prior to
I think we should be rather aggressive here. Probably with |
That's pretty cool 👍 The tests are failing due to the log statements. Is there anything else which is to do here? |
I'm a bit torn here. I understand not wanting to have baggage, but Terraform has been moving through versions quickly (0.15 came out 2 months ago, 0.14 was 6 months ago). I personally have stacks created with cdktf that are on 0.13.x. Module are provider versions are always compatible across Terraform versions, so this can bleed outside of just the cli. |
Mainly debug the failing tests, if it's just the logs I'll remove them now 👍 |
Is there any blocker preventing you from upgrading? |
0839873
to
891480f
Compare
Time |
Hehe, ok :) Right now it works for both output versions (text / json). At latest with Terraform 1.1, we're going to drop support for 0.15 anyway. However, I'd still push for an earlier move in that direction. And again, this only affects the |
I'm going to lock this pull request because it has been closed for 30 days. This helps our maintainers find and focus on the active issues. If you've found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
Alternative approach for #770, I think I like it better. I strongly typed every possible message mentioned in https://www.terraform.io/docs/internals/machine-readable-ui.html (thank you @jsteinich for pointing me to it).