-
-
Notifications
You must be signed in to change notification settings - Fork 625
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
includes
doesn't interpolate paths
#942
Comments
Looks like a bug to me unless I'm missing something. See #943 |
🍠 Thanks for the lightning fix! |
Hey... So unfortunately it looks like the fix in #943 is only partial.
Any ideas? |
Had a very quick look at this. When replicating your issue, I only used a static variable, so didn't catch the problem with dynamic variables. Unfortunately, it seems like handling dynamic variables is going to be much less simple than the fix for static variables. Currently, dynamic variables are resolved by the compiler and this runs when a task is being evaluated. This is significantly after included taskfiles are evaluated. At the moment it doesn't look like dynamic variables are supported in any of the global keywords (i.e. outside of A new issue would be great as comments on closed issues tend to get forgotten otherwise. Please reference this issue in your new one though! |
Opened #951 |
Hi there
Firstly, I'm not sure if this is strictly a bug or a feature request.
However the docs mention that it's possible to interpolate using the
{{OS}}
value, so I'd expect to be able to use other vars...Anyhow, I've got a setup that leverages the
includes
functionality to dynamically include anotherTaskfile
.The challenge is that the path to that downstream
taskfile
varies based on user input.E.g.
However the tasks don't get loaded by
task
.If I replace
{{.MODULE_NAME}}
in the above with a "qualified" location then the includes work as expected:3.18.0
MacOS 12
The text was updated successfully, but these errors were encountered: