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

feat: implement gentle force experiment draft (#1216)

* feat: implement gentle force experiment draft

* docs: changelog
This commit is contained in:
Pete Davison
2023-06-18 02:32:18 +01:00
committed by GitHub
parent d8a12fe56d
commit 5fdaa9aa36
10 changed files with 139 additions and 35 deletions

View File

@ -50,6 +50,7 @@ type Executor struct {
TempDir string
Entrypoint string
Force bool
ForceAll bool
Watch bool
Verbose bool
Silent bool
@ -179,7 +180,8 @@ func (e *Executor) RunTask(ctx context.Context, call taskfile.Call) error {
return err
}
if !e.Force {
skipFingerprinting := e.ForceAll || (call.Direct && e.Force)
if !skipFingerprinting {
if err := ctx.Err(); err != nil {
return err
}