mirror of
https://github.com/go-task/task.git
synced 2026-07-07 14:09:11 +00:00
Improvements + CHANGELOG for #677
This commit is contained in:
@@ -110,15 +110,11 @@ func Taskfile(dir string, entrypoint string) (*taskfile.Taskfile, error) {
|
||||
}
|
||||
|
||||
for _, task := range includedTaskfile.Tasks {
|
||||
if includedTask.Vars != nil {
|
||||
if task.Vars == nil {
|
||||
task.Vars = &taskfile.Vars{}
|
||||
}
|
||||
task.Vars.Merge(includedTask.Vars)
|
||||
}
|
||||
if !filepath.IsAbs(task.Dir) {
|
||||
task.Dir = filepath.Join(includedTask.Dir, task.Dir)
|
||||
}
|
||||
task.IncludeVars = includedTask.Vars
|
||||
task.IncludedTaskfileVars = includedTaskfile.Vars
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user