You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Vars of included Taskfiles in included Taskfiles #778
I have encountered an inconsistency in vars of included taskfiles and need some assistance. The setup I have looks like this. There is a common-include taskfile and a package1 taskfile. The parent taskfile includes both taskfiles. The package1 also includes common-include.
The problem arises with the variables that are passed. From parent to common-include everything works fine but from package1 to common-include the passed variable is simply ignored.
Example Taskfile showing the issue
❯ tree ..
├── include
│ └── Taskfile.include.yaml
├── package1
│ └── Taskfile.package1.yaml
└── Taskfile.yaml
2 directories, 3 files
❯ go-task
task: [included:task1] echo"VAR_1 is provided-from-parent-var1"
VAR_1 is provided-from-parent-var1
❯ go-task package1:default
task: [package1:included:task1] echo"VAR_1 is included-default-var1"
VAR_1 is included-default-var1
By executing go-task the default task from parent is executed and the VAR_1 has the provided value. By executing go-task package1:default the default task from package1 is executed and the VAR_1 does not have the provided value provided-from-package1-var1 but the default value from the common-include included-default-var1.
Activity
andreynering commentedon Jul 8, 2023
Fixed in #1256