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

Add support for changing the order of attributes/blocks #85

Open
skyzyx opened this issue Sep 8, 2023 · 1 comment
Open

Add support for changing the order of attributes/blocks #85

skyzyx opened this issue Sep 8, 2023 · 1 comment

Comments

@skyzyx
Copy link

skyzyx commented Sep 8, 2023

Looking to be able to enable support for auto-updating a user's ~/.terraformrc file, assuming it exists.

The official docs state:

As a convenience for provider development, Terraform supports a special additional block dev_overrides in provider_installation blocks. The contents of this block effectively override all of the other configured installation methods, so a block of this type must always appear first in the sequence: [code example]

I see that there is support for append, but what about adding support for prepend?

@minamijoyo
Copy link
Owner

Thank you for your proposal!
While supporting the .terraformrc is technically impossible, as mentioned in #84, I think inserting a node at a given position is still a valid feature request.
However, the current problem is the lack of APIs of the underlying hclwrite library. hashicorp/hcl#589 So, I'll leave this open.

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

No branches or pull requests

2 participants