Skip to content

Conversation

@hans-d
Copy link

@hans-d hans-d commented Dec 1, 2025

Loop variables are now available to ref: inside looped task calls, matching the behavior of template substitutions.

Fixes #2505

  • Fix loop ref resolution: Added ResolveRefWithExtra and wired ReplaceVarWithExtra to it so variable references (ref:) now receive the per-iteration extra map (loop variables and aliases). ResolveRef now delegates to the new helper to keep behavior consistent for non-loop callers.
  • Added unit test and testdata

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.

cannot reference loop variable using .ref

1 participant