mirror of
https://github.com/go-task/task.git
synced 2026-06-11 09:51:50 +00:00
fix: re-run task when generated files are missing with method: timestamp (#2716)
This commit is contained in:
2
testdata/timestamp/.gitignore
vendored
Normal file
2
testdata/timestamp/.gitignore
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
.task
|
||||
generated.txt
|
||||
11
testdata/timestamp/Taskfile.yml
vendored
Normal file
11
testdata/timestamp/Taskfile.yml
vendored
Normal 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
1
testdata/timestamp/source.txt
vendored
Normal file
@@ -0,0 +1 @@
|
||||
hello from source
|
||||
Reference in New Issue
Block a user