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

terraform: Add lang.ReferencesInExpr #180

Merged
merged 1 commit into from
Aug 20, 2022
Merged

Conversation

wata727
Copy link
Member

@wata727 wata727 commented Aug 18, 2022

This PR adds lang.ReferencesInExpr to parse references in Terraform Language from hcl.Expression.
Reference parsing allows for more advanced inspection than native HCL expression parsing. for example:

・Emit a warning when a certain variable is used.
・If a resource is referenced, analyze the resource block and check for the possibility of including invalid values.

These packages are a fork of the Terraform internal packages and are independently maintained for the SDK.
https://github.com/hashicorp/terraform/tree/v1.2.7/internal/addrs
https://github.com/hashicorp/terraform/tree/v1.2.7/internal/lang

@wata727 wata727 marked this pull request as ready for review August 20, 2022 09:11
@wata727 wata727 merged commit 9bf8cad into master Aug 20, 2022
@wata727 wata727 deleted the add_references_in_expr branch August 20, 2022 13:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant