mirror of
https://github.com/go-task/task.git
synced 2026-06-30 08:04:28 +00:00
Make "checksum" the default method in v3
This commit is contained in:
4
testdata/generates/Taskfile.yml
vendored
4
testdata/generates/Taskfile.yml
vendored
@@ -8,6 +8,7 @@ tasks:
|
||||
dir: sub
|
||||
cmds:
|
||||
- cat src.txt > '{{.BUILD_DIR}}/abs.txt'
|
||||
method: timestamp
|
||||
sources:
|
||||
- src.txt
|
||||
generates:
|
||||
@@ -20,6 +21,7 @@ tasks:
|
||||
dir: sub
|
||||
cmds:
|
||||
- cat src.txt > '../rel.txt'
|
||||
method: timestamp
|
||||
sources:
|
||||
- src.txt
|
||||
generates:
|
||||
@@ -30,6 +32,7 @@ tasks:
|
||||
cmds:
|
||||
- mkdir -p sub
|
||||
- echo "hello world" > sub/src.txt
|
||||
method: timestamp
|
||||
status:
|
||||
- test -f sub/src.txt
|
||||
|
||||
@@ -38,6 +41,7 @@ tasks:
|
||||
deps: [sub/src.txt]
|
||||
cmds:
|
||||
- cat sub/src.txt > 'my text file.txt'
|
||||
method: timestamp
|
||||
sources:
|
||||
- sub/src.txt
|
||||
generates:
|
||||
|
||||
Reference in New Issue
Block a user