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

Add CHANGELOG + Small nits for #552

This commit is contained in:
Andrey Nering 2021-09-25 09:40:03 -03:00
parent 52474f9103
commit e45ed85b55
3 changed files with 6 additions and 3 deletions

View File

@ -2,6 +2,8 @@
## Unreleased
- Add ability to declare an included Taskfile as optional
([#519](https://github.com/go-task/task/issues/519), [#552](https://github.com/go-task/task/pull/552)).
- Add support for including Taskfiles in the home directory by using `~`
([#539](https://github.com/go-task/task/issues/539), [#557](https://github.com/go-task/task/pull/557)).

View File

@ -166,6 +166,7 @@ includes:
tests:
taskfile: ./tests/Taskfile.yml
optional: true
tasks:
greet:
cmds:

View File

@ -60,10 +60,10 @@ func Taskfile(dir string, entrypoint string) (*taskfile.Taskfile, error) {
}
info, err := os.Stat(path)
if err != nil && includedTask.Optional {
return nil
}
if err != nil {
if includedTask.Optional {
return nil
}
return err
}
if info.IsDir() {