-
-
Notifications
You must be signed in to change notification settings - Fork 639
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
TASKFILE_DIR
with incorrect value
#1755
Comments
Hello! Back to your question, it's intended. We load all variables / envs when we read all the Taskfiles in the DAG. Then, each time we run a task (here we run
Why do we that ? because some variables rely on special variables (TASKFILE_DIR & co) or rely on sh variable which need to be compiled at runtime. If you want to achieve this, I recommand to declare the variable / env in the Taskfile you want to use it |
Hi, @vmaerten Thanks, I totally understand how it happened. IMHO, if it's not recommended to use global variable / env from included taskfile, I'll strongly suggest that do not make the variables / envs from an included taskfile accessible outside of it. This is misleading and easily accidentally referenced it. Thanks for your answering. |
output:
expected output:
Task version: 3.38.0 ()
The text was updated successfully, but these errors were encountered: