1
0
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:
Stephen Prater 2019-05-28 12:28:29 -07:00 committed by GitHub
parent bd5882f0f0
commit 659cae6a4c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 4 deletions

View File

@ -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'

View File

@ -13,7 +13,7 @@ type Task struct {
Sources []string
Generates []string
Status []string
Precondition []*Precondition
Preconditions []*Precondition
Dir string
Vars Vars
Env Vars

View File

@ -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))