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

Overhaul current path reconstruction in eager execution #1205

Merged
merged 7 commits into from
Sep 23, 2024

Conversation

jasmith-hs
Copy link
Contributor

This PR takes the newer way of reconstructing the current_path, introduced in #1177 and applies it to more places where we reconstruct the path by wrapping the initial and new path.

It also adds a new class for tracking the meta context variables MetaContextVariables, specifically causing the temporary variables for current_path and import resource alias to be considered as meta context variables.

This is a more comprehensive way of solving #1199 and it also doesn't change non-eager execution code. It does that by wrapping the partially evaluated macro function output in a child scope (with {% for __ignored__ in [0] %})

Several minor QOL improvements are made here too.

Base automatically changed from cleanup-eager-fixtures to master September 12, 2024 12:43
@jasmith-hs jasmith-hs merged commit c392aac into master Sep 23, 2024
5 checks passed
@jasmith-hs jasmith-hs deleted the fix-macro-child-scope-reconstruction branch September 23, 2024 17:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant