fix: re-run task when generated files are missing with method: timestamp (#2716)

This commit is contained in:
Doug Richardson
2026-04-11 17:42:50 -07:00
committed by GitHub
parent 8fa9dc04ac
commit f2e32beabd
6 changed files with 135 additions and 0 deletions

2
testdata/timestamp/.gitignore vendored Normal file
View File

@@ -0,0 +1,2 @@
.task
generated.txt

11
testdata/timestamp/Taskfile.yml vendored Normal file
View File

@@ -0,0 +1,11 @@
version: '3'
tasks:
build:
cmds:
- cp ./source.txt ./generated.txt
sources:
- ./source.txt
generates:
- ./generated.txt
method: timestamp

1
testdata/timestamp/source.txt vendored Normal file
View File

@@ -0,0 +1 @@
hello from source