1
0
mirror of https://github.com/go-task/task.git synced 2025-11-23 22:24:45 +02:00

fix: task level vars are not ignored in requires (#1960)

Co-authored-by: MOKEKO <Anthurium.1605@gmail.com>
This commit is contained in:
Valentin Maerten
2024-12-30 19:11:27 +01:00
committed by GitHub
parent 8ce9bdc8c7
commit da40aabcc7
3 changed files with 13 additions and 1 deletions

View File

@@ -56,7 +56,7 @@ func (e *Executor) compiledTask(call *ast.Call, evaluateShVars bool) (*ast.Task,
Dir: templater.Replace(origTask.Dir, cache),
Set: origTask.Set,
Shopt: origTask.Shopt,
Vars: nil,
Vars: vars,
Env: nil,
Dotenv: templater.Replace(origTask.Dotenv, cache),
Silent: origTask.Silent,