1
0
mirror of https://github.com/go-task/task.git synced 2025-03-19 21:17:46 +02:00

Add CHANGELOG to #964

This commit is contained in:
Andrey Nering 2022-12-22 21:27:16 -03:00
parent dbe8131b75
commit e235d77d64
2 changed files with 3 additions and 0 deletions

View File

@ -2,6 +2,8 @@
## Unreleased
- Small bug fix: closing "Taskfile.yml" once we're done reading it
([#963](https://github.com/go-task/task/issues/963), [#964](https://github.com/go-task/task/pull/964) by @HeCorr).
- Add `--json` flag (alias `-j`) with the intent to improve support for code
editors and add room to other possible integrations. This is basic for now,
but we plan to add more info in the near future

View File

@ -198,6 +198,7 @@ func readTaskfile(file string) (*taskfile.Taskfile, error) {
return nil, err
}
defer f.Close()
var t taskfile.Taskfile
if err := yaml.NewDecoder(f).Decode(&t); err != nil {
return nil, fmt.Errorf("task: Failed to parse %s:\n%w", filepathext.TryAbsToRel(file), err)