Skip to content

Conversation

trulede
Copy link
Contributor

@trulede trulede commented Sep 27, 2025

Relocate the calculation of an included tasks task.Dir until the templating is available.

Previously, task.DIr would be calculated earlier which resulted in SmartJoin() incorrectly evaluating the second parameter, which had not been expanded (i.e. {{.FOO}}. To get correct behaviour, SmartJoin() needed to be called later, during compilation of the imported task, so that the second parameter could first be expanded, and then used correctly with SmartJoin().

fixes #2443

@trulede trulede marked this pull request as draft September 27, 2025 11:51
@trulede
Copy link
Contributor Author

trulede commented Sep 27, 2025

I put this as a draft until there is an indication that a fix is wanted.

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.

Absolute path bug when using include and dir
1 participant