Skip to content

Commit

Permalink
fix: regression of #1256
Browse files Browse the repository at this point in the history
  • Loading branch information
pd93 committed Sep 12, 2023
1 parent 7285cb1 commit 5919d64
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion taskfile/read/dag.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,10 @@ func (dag *TaskfileGraph) Merge() (*taskfile.Taskfile, error) {
})
for _, task := range vertex.taskfile.Tasks.Values() {
task.Dir = filepathext.SmartJoin(mergeOptions.Dir, task.Dir)
task.IncludeVars = mergeOptions.Vars
if task.IncludeVars == nil {
task.IncludeVars = &taskfile.Vars{}
}
task.IncludeVars.Merge(mergeOptions.Vars)
task.IncludedTaskfileVars = vertex.taskfile.Vars
task.IncludedTaskfileDir = mergeOptions.Dir
}
Expand Down

0 comments on commit 5919d64

Please sign in to comment.