-
-
Notifications
You must be signed in to change notification settings - Fork 640
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
Dynamic variables not working inside includes #1690
Comments
This won't work either: version: '3'
dotenv:
- .env
includes:
test_import:
taskfile: '{{.ENV_NAME}}.yml'
tasks:
test:
cmds:
- echo {{.ENV_NAME}} where .env file contains:
|
I see similar behaviour with the special variables too
Task version: v3.38.0 (h1:O7kgA6BfwktXHPrheByQO46p3teKtRuq1EpGnFxNzbo=) |
Indeed dynamic variables and special variables are not evaluated before the include |
@vmaerten – just curious, why was it designed to behave this way? |
Taskfile:
This will fail with:
It seems that
ENV_NAME
evaluates to an empty string inside test_import.The text was updated successfully, but these errors were encountered: