mirror of
https://github.com/go-task/task.git
synced 2025-04-17 12:06:30 +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
|
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
|
```yaml
|
||||||
version: '2'
|
version: '2'
|
||||||
|
@ -13,7 +13,7 @@ type Task struct {
|
|||||||
Sources []string
|
Sources []string
|
||||||
Generates []string
|
Generates []string
|
||||||
Status []string
|
Status []string
|
||||||
Precondition []*Precondition
|
Preconditions []*Precondition
|
||||||
Dir string
|
Dir string
|
||||||
Vars Vars
|
Vars Vars
|
||||||
Env Vars
|
Env Vars
|
||||||
|
@ -73,7 +73,6 @@ func (e *Executor) CompiledTask(call taskfile.Call) (*taskfile.Task, error) {
|
|||||||
IgnoreError: cmd.IgnoreError,
|
IgnoreError: cmd.IgnoreError,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
if len(origTask.Deps) > 0 {
|
if len(origTask.Deps) > 0 {
|
||||||
new.Deps = make([]*taskfile.Dep, len(origTask.Deps))
|
new.Deps = make([]*taskfile.Dep, len(origTask.Deps))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user