Skip to content

Conversation

@takaishi
Copy link
Collaborator

@takaishi takaishi commented Sep 13, 2023

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

@takaishi takaishi self-assigned this Sep 13, 2023
@takaishi takaishi changed the title Feat/support moved block support moved block Sep 13, 2023
@takaishi takaishi requested review from akihiro17 and okkez September 13, 2023 01:20
@takaishi takaishi marked this pull request as ready for review September 13, 2023 01:20
Copy link
Contributor

@okkez okkez left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@akihiro17 akihiro17 left a comment

Choose a reason for hiding this comment

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

すいません。遅れました。1個消しても良さそうなコードあったのでコメントしました。

Header() string
}

type Config struct {
Copy link
Contributor

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{
Copy link
Contributor

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のみが差分として表示されるという理解であっているでしょうか。

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

はい、その理解であっています。

@takaishi takaishi merged commit 1b2381e into master Sep 25, 2023
@takaishi takaishi deleted the feat/support-moved-block branch September 25, 2023 05:56
@takaishi
Copy link
Collaborator Author

I release v0.0.8 includes this PR.

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.

4 participants