-
-
Notifications
You must be signed in to change notification settings - Fork 774
Closed
Description
- Task version: v3.9.0
- Operating System: ubuntu 20.04
Very similar issue: #618
Hi, first thank you for the great tool. I would like to report what my team and I consider a bug (unexpected behavior) and to check your opinion on the topic.
Consider the following setup:
- first Taskfile in the root directory: Taskfile.yml
version: '3'
includes:
imported: import/Taskfile.yml
vars:
custom_value: root
tasks:
print_var:
cmds:
- echo {{.custom_value}}- second in the sub directory:
importand included from the root Taskfile
version: '3'
vars:
custom_value: included
tasks:
print_var:
cmds:
- echo {{.custom_value}}Running the following commands:
> task imported:print_var
task: [imported:print_var] echo included
included
> task print_var
task: [print_var] echo included
included
While our expectation were more in line with the following:
> task imported:print_var
task: [imported:print_var] echo included
included
> task print_var
task: [print_var] echo root
root
where the root task would print the value set in root Taskfile.
Thanks for looking at this issue.
gsantoro, haf, apgrucza, ricardogaspar2, MattHodge and 2 more
Metadata
Metadata
Assignees
Labels
No labels