[Bug:] Custom task directory (set with dir
) is not created before initializing dynamic variable
#1841
Labels
state: needs triage
Waiting to be triaged by a maintainer.
Consider the following task using a custom
dir
:The above task will create the directory
test-dir
before executing the command if it is not already created.However, when using a dynamic variable instead, like this:
It fails to execute when the directory
test-dir
does not yet exist:task: Command "curl https://taskfile.dev" failed: chdir /home/user/test-dir: no such file or directory
Expected behaviour:
The directory should be created before trying to execute the dynamic variable initialization command.
The text was updated successfully, but these errors were encountered: