1
0
mirror of https://github.com/go-task/task.git synced 2025-06-15 00:15:10 +02:00

add checksum based status check, alternative to timestamp based

This commit is contained in:
Andrey Nering
2017-09-16 11:44:13 -03:00
parent 95f7b9443f
commit c295a1998a
15 changed files with 315 additions and 97 deletions

View File

@ -210,6 +210,7 @@ func (e *Executor) CompiledTask(call Call) (*Task, error) {
}
new := Task{
Task: origTask.Task,
Desc: r.replace(origTask.Desc),
Sources: r.replaceSlice(origTask.Sources),
Generates: r.replaceSlice(origTask.Generates),
@ -219,6 +220,7 @@ func (e *Executor) CompiledTask(call Call) (*Task, error) {
Set: r.replace(origTask.Set),
Env: r.replaceVars(origTask.Env),
Silent: origTask.Silent,
Method: r.replace(origTask.Method),
}
if e.Dir != "" && !filepath.IsAbs(new.Dir) {
new.Dir = filepath.Join(e.Dir, new.Dir)