@@ -70,12 +70,13 @@ type Executor struct {
7070 Stdout io.Writer
7171 Stderr io.Writer
7272
73- Logger * logger.Logger
74- Compiler * compiler.Compiler
75- Output output.Output
76- OutputStyle ast.Output
77- TaskSorter sort.TaskSorter
78- UserWorkingDir string
73+ Logger * logger.Logger
74+ Compiler * compiler.Compiler
75+ Output output.Output
76+ OutputStyle ast.Output
77+ TaskSorter sort.TaskSorter
78+ UserWorkingDir string
79+ EnableVersionCheck bool
7980
8081 fuzzyModel * fuzzy.Model
8182
@@ -383,7 +384,7 @@ func (e *Executor) runCommand(ctx context.Context, t *ast.Task, call *ast.Call,
383384 if err != nil {
384385 return fmt .Errorf ("task: failed to get variables: %w" , err )
385386 }
386- stdOut , stdErr , close := outputWrapper .WrapWriter (e .Stdout , e .Stderr , t .Prefix , outputTemplater )
387+ stdOut , stdErr , closer := outputWrapper .WrapWriter (e .Stdout , e .Stderr , t .Prefix , outputTemplater )
387388
388389 err = execext .RunCommand (ctx , & execext.RunCommandOptions {
389390 Command : cmd .Cmd ,
@@ -395,7 +396,7 @@ func (e *Executor) runCommand(ctx context.Context, t *ast.Task, call *ast.Call,
395396 Stdout : stdOut ,
396397 Stderr : stdErr ,
397398 })
398- if closeErr := close (err ); closeErr != nil {
399+ if closeErr := closer (err ); closeErr != nil {
399400 e .Logger .Errf (logger .Red , "task: unable to close writer: %v\n " , closeErr )
400401 }
401402 if _ , isExitError := interp .IsExitStatus (err ); isExitError && cmd .IgnoreError {
0 commit comments