We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d0060bb commit 44a2e8eCopy full SHA for 44a2e8e
taskfile/read/dag.go
@@ -104,7 +104,10 @@ func (dag *TaskfileGraph) Merge() (*taskfile.Taskfile, error) {
104
})
105
for _, task := range vertex.taskfile.Tasks.Values() {
106
task.Dir = filepathext.SmartJoin(mergeOptions.Dir, task.Dir)
107
- task.IncludeVars = mergeOptions.Vars
+ if task.IncludeVars == nil {
108
+ task.IncludeVars = &taskfile.Vars{}
109
+ }
110
+ task.IncludeVars.Merge(mergeOptions.Vars)
111
task.IncludedTaskfileVars = vertex.taskfile.Vars
112
task.IncludedTaskfileDir = mergeOptions.Dir
113
}
0 commit comments