Skip to content

Fix: track shadowed jinja variable assignments correctly#5503

Merged
treysp merged 1 commit intomainfrom
trey/jinja-var-shadowing
Oct 8, 2025
Merged

Fix: track shadowed jinja variable assignments correctly#5503
treysp merged 1 commit intomainfrom
trey/jinja-var-shadowing

Conversation

@treysp
Copy link
Contributor

@treysp treysp commented Oct 7, 2025

If a var name is used on both the right- and left-hand sides of a jinja assignment, we don't currently track the right side correctly.

Example: {% set model = model.path %} should track model.path.

@treysp treysp requested a review from a team October 7, 2025 22:00
@treysp treysp force-pushed the trey/jinja-var-shadowing branch 2 times, most recently from 3254eb3 to 6902806 Compare October 8, 2025 18:43
@treysp treysp force-pushed the trey/jinja-var-shadowing branch from 6902806 to f2df3b8 Compare October 8, 2025 18:51
@treysp treysp enabled auto-merge (squash) October 8, 2025 18:53
@treysp treysp merged commit b866d33 into main Oct 8, 2025
34 of 36 checks passed
@treysp treysp deleted the trey/jinja-var-shadowing branch October 8, 2025 19:08
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