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: BuiltinEvalContext function eval in partial-expanded module #34650

Closed

Conversation

apparentlymart
Copy link
Contributor

#34571 and #34614 previously changed the EvalContext interface to support evaluation in both fully-expanded and partial-expanded modules, but the provider-contributed functions feature landed semi-concurrently with it and so inadvertently introduced a codepath that only worked in the fully-expanded case.

This will now handle both situations, since all we really need is the addrs.Module, which we can obtain in both modes.

An earlier commit changed the EvalContext model to support evaluation in
both fully-expanded and partial-expanded modules, but the
provider-contributed functions feature landed semi-concurrently with it
and so inadvertently introduced a codepath that only worked in the
fully-expanded case.

This will now handle both situations, since all we really need is the
addrs.Module, which we can obtain in both modes.
@apparentlymart
Copy link
Contributor Author

This landed as part of #34651, in the end.

Copy link
Contributor

I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active contributions.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 31, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant