mirror of
https://github.com/go-task/task.git
synced 2025-12-16 11:47:44 +01:00
fix: interpolate dynamic vars in defer (#1818)
This commit is contained in:
2
task.go
2
task.go
@@ -330,7 +330,7 @@ func (e *Executor) runDeferred(t *ast.Task, call *ast.Call, i int, deferredExitC
|
||||
}
|
||||
|
||||
cmd := t.Cmds[i]
|
||||
vars, _ := e.Compiler.FastGetVariables(origTask, call)
|
||||
vars, _ := e.Compiler.GetVariables(origTask, call)
|
||||
cache := &templater.Cache{Vars: vars}
|
||||
extra := map[string]any{}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user