mirror of
https://github.com/go-task/task.git
synced 2025-01-12 04:34:11 +02:00
Apply suggestions from code review
Co-Authored-By: Andrey Nering <andrey.nering@gmail.com>
This commit is contained in:
parent
bd5882f0f0
commit
659cae6a4c
@ -141,9 +141,9 @@ includes:
|
||||
docker: ./DockerTasks.yml
|
||||
```
|
||||
|
||||
## Version 2.3
|
||||
## Version 2.6
|
||||
|
||||
Version 2.3 comes with `preconditions` stanza in tasks.
|
||||
Version 2.6 comes with `preconditions` stanza in tasks.
|
||||
|
||||
```yaml
|
||||
version: '2'
|
||||
|
@ -13,7 +13,7 @@ type Task struct {
|
||||
Sources []string
|
||||
Generates []string
|
||||
Status []string
|
||||
Precondition []*Precondition
|
||||
Preconditions []*Precondition
|
||||
Dir string
|
||||
Vars Vars
|
||||
Env Vars
|
||||
|
@ -73,7 +73,6 @@ func (e *Executor) CompiledTask(call taskfile.Call) (*taskfile.Task, error) {
|
||||
IgnoreError: cmd.IgnoreError,
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
if len(origTask.Deps) > 0 {
|
||||
new.Deps = make([]*taskfile.Dep, len(origTask.Deps))
|
||||
|
Loading…
Reference in New Issue
Block a user