-
-
Notifications
You must be signed in to change notification settings - Fork 624
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
Regression: default directory for included taskfiles incorrect. #1579
Comments
@wburningham This was a bug fix and is intended behaviour. The
If you extend the ...
cmds:
- cmd: echo "root | ROOT_DIR = '{{.ROOT_DIR}}'"
silent: true
- cmd: echo "root | TASKFILE_DIR = '{{.TASKFILE_DIR}}'"
silent: true
- cmd: echo "root | PWD = '$PWD'"
silent: true
... obviously update the Outputs:
You can see that the execution directory changes to |
Got it. Thanks for explaining how setting |
Task
v3.35.1
sets the directory of included taskfiles to the directory where the taskfile lives. In taskv3.34.1
the directory had to explicitly be set withdir
when including the taskfile.If this is the intended behavior, I likely misunderstand what the real-world use of
dir
would be when including taskfiles.A simple repro case:
The taskfiles in the
sub*
directories print the same variablesWith 3.34.1:
With 3.35.1:
Notice how the
TASKFILE_DIR
variable is different for the taskfile included fromsub_with_dir
and withdir
set.3.34.1
vs3.35.1
macOS 14.2
The text was updated successfully, but these errors were encountered: