1
0
mirror of https://github.com/go-task/task.git synced 2025-03-19 21:17:46 +02:00

Merge pull request #598 from sylv-io/fix/false_fail

task: Check context error
This commit is contained in:
Andrey Nering 2021-11-28 16:10:32 -03:00 committed by GitHub
commit a441b4b90d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -315,6 +315,10 @@ func (e *Executor) RunTask(ctx context.Context, call taskfile.Call) error {
}
if !e.Force {
if err := ctx.Err(); err != nil {
return err
}
preCondMet, err := e.areTaskPreconditionsMet(ctx, t)
if err != nil {
return err