1
0
mirror of https://github.com/go-task/task.git synced 2025-11-25 22:32:55 +02:00

fix: avoid reruns when the timestamp method is used (#977)

This commit is contained in:
Amin Yahyaabadi
2023-01-14 12:17:36 -08:00
committed by GitHub
parent fce7575b03
commit 347fcf9f67
5 changed files with 61 additions and 28 deletions

View File

@@ -87,9 +87,12 @@ func (e *Executor) getStatusChecker(t *taskfile.Task) (status.Checker, error) {
func (e *Executor) timestampChecker(t *taskfile.Task) status.Checker {
return &status.Timestamp{
TempDir: e.TempDir,
Task: t.Name(),
Dir: t.Dir,
Sources: t.Sources,
Generates: t.Generates,
Dry: e.Dry,
}
}