Skip to content

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
@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.

2 participants