1
0
mirror of https://github.com/go-task/task.git synced 2025-06-15 00:15:10 +02:00

fix: variables passed to included taskfile (#1533)

This commit is contained in:
Pete Davison
2024-03-10 17:28:04 +00:00
committed by GitHub
parent a425e2bb6c
commit c0a0faf3d3
3 changed files with 4 additions and 4 deletions

View File

@ -129,10 +129,10 @@ func (c *Compiler) getVariables(t *ast.Task, call *ast.Call, evaluateShVars bool
return nil, err
}
if t != nil {
if err := t.IncludedTaskfileVars.Range(taskRangeFunc); err != nil {
if err := t.IncludeVars.Range(rangeFunc); err != nil {
return nil, err
}
if err := t.IncludeVars.Range(rangeFunc); err != nil {
if err := t.IncludedTaskfileVars.Range(taskRangeFunc); err != nil {
return nil, err
}
}