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 functions for Terraform 1.8 #340

Merged
merged 2 commits into from
Apr 5, 2024
Merged

Add functions for Terraform 1.8 #340

merged 2 commits into from
Apr 5, 2024

Conversation

ansgarm
Copy link
Member

@ansgarm ansgarm commented Apr 5, 2024

This PR adds new functions for Terraform 1.8

It also starts skipping functions prefixed with core:: as Terraform 1.8 started returning all functions twice. Once with and once without the prefix.
I thought about filtering at a later stage or in hcl-lang, however it seemed overly complicated to add a feature to hcl-lang which allows certain filtering to happen (in order to not leak the Terraform specific core:: prefix filtering to all hcl based languages).
Happy to move the filtering e.g. to the schema merging instead, but it seemed the most simple and expected to just tackle it at the source. However, I don't know whether these generated bindings are used for some kind of validations (yet?) so, maybe moving it "up" makes sense – please tell me if that's the case!

@ansgarm ansgarm requested a review from a team as a code owner April 5, 2024 10:11
internal/funcs/generated/gen/gen.go Outdated Show resolved Hide resolved
Co-authored-by: James Pogran <jpogran@outlook.com>
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.

2 participants