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

Bugfix: Upgrade hclv2 to allow terraform-docs to read HCL containing provider functions #770

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

brittandeyoung
Copy link

@brittandeyoung brittandeyoung commented Apr 23, 2024

Description of your changes

This PR does the following:

  1. Upgrades the hclv2 go package ( and necessary dependencies) to a version that supports reading the new provider defined functions as noted here: Namespaced functions hashicorp/hcl#639
  2. Adds a provider defined function to the full-example test to validate that terraform-docs is now able to parse hcl containing provider functions.

Fixes #766

I have:

How has this code been tested

  1. I added a provider function to the full-example test config. I then verified that tests related to that configuration were failing using make test.
  2. I upgraded the hclv2 go package and then verified that the tests were now passing using make test.

…rovider functions

Signed-off-by: Brittan DeYoung <32572259+brittandeyoung@users.noreply.github.com>
…unction to verify terraform-docs can properly parse

Signed-off-by: Brittan DeYoung <32572259+brittandeyoung@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Terraform v1.8 function: provider::terraform::encode_expr(var.list) causes attribute separation error
1 participant