Re-run the task if generated files do not exist

This commit is contained in:
Seiichi Uchida
2019-08-01 12:51:27 +09:00
parent 4c295b564a
commit 26e0c0887a
2 changed files with 20 additions and 8 deletions

View File

@@ -58,10 +58,11 @@ func (e *Executor) getStatusChecker(t *taskfile.Task) (status.Checker, error) {
}, nil
case "checksum":
return &status.Checksum{
Dir: t.Dir,
Task: t.Task,
Sources: t.Sources,
Dry: e.Dry,
Dir: t.Dir,
Task: t.Task,
Sources: t.Sources,
Generates: t.Generates,
Dry: e.Dry,
}, nil
case "none":
return status.None{}, nil