-
Notifications
You must be signed in to change notification settings - Fork 11
support moved block #22
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
Conversation
okkez
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
akihiro17
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
すいません。遅れました。1個消しても良さそうなコードあったのでコメントしました。
internal/terraform/plan.go
Outdated
| Header() string | ||
| } | ||
|
|
||
| type Config struct { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
もうこの構造体いらないと思うので削除した方が良いと思いました。
| ` | ||
|
|
||
| // These attributes are important (https://github.com/hashicorp/terraform/blob/v1.5.6/internal/command/jsonformat/computed/renderers/block.go#L19-L23) | ||
| var importantAttributes = []string{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[Q] moved blockにはっこのimportantとされているattributeのみが差分として表示されるという理解であっているでしょうか。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
はい、その理解であっています。
|
I release v0.0.8 includes this PR. |
The Pull Request to support moved block ( hashicorp/terraform-json#95 ) is merged, so terraform-j2md supports moved block too.
The terraform-json doesn't have a release that includes PR to support moved block yet, so I use main branch temporarily.
#9