1
0
mirror of https://github.com/go-task/task.git synced 2025-11-23 22:24:45 +02:00

Make "checksum" the default method in v3

This commit is contained in:
Andrey Nering
2019-09-08 22:51:56 -03:00
parent 8020284b12
commit 78595fba0b
5 changed files with 19 additions and 3 deletions

View File

@@ -169,6 +169,14 @@ func (e *Executor) Setup() error {
return fmt.Errorf(`task: output option "%s" not recognized`, e.Taskfile.Output)
}
if e.Taskfile.Method == "" {
if v >= 3 {
e.Taskfile.Method = "checksum"
} else {
e.Taskfile.Method = "timestamp"
}
}
if v <= 2.1 {
err := errors.New(`task: Taskfile option "ignore_error" is only available starting on Taskfile version v2.1`)