mirror of
https://github.com/go-task/task.git
synced 2025-06-17 00:17:51 +02:00
Add CHANGELOG entry for #1022
This commit is contained in:
@ -2,6 +2,10 @@
|
|||||||
|
|
||||||
## Unreleased
|
## Unreleased
|
||||||
|
|
||||||
|
- Add ability to set `error_only: true` on the `group` output mode. This will
|
||||||
|
instruct Task to only print a command output if it returned with a non-zero
|
||||||
|
exit code
|
||||||
|
([#664](https://github.com/go-task/task/issues/664), [#1022](https://github.com/go-task/task/pull/1022) by @jaedle).
|
||||||
- Fixed bug where `.task/checksum` file was sometimes not being created when
|
- Fixed bug where `.task/checksum` file was sometimes not being created when
|
||||||
task also declares a `status:`
|
task also declares a `status:`
|
||||||
([#840](https://github.com/go-task/task/issues/840), [#1035](https://github.com/go-task/task/pull/1035) by @harelwa, [#1037](https://github.com/go-task/task/pull/1037) by @pd93).
|
([#840](https://github.com/go-task/task/issues/840), [#1035](https://github.com/go-task/task/pull/1035) by @harelwa, [#1037](https://github.com/go-task/task/pull/1037) by @pd93).
|
||||||
|
6
task.go
6
task.go
@ -293,11 +293,9 @@ func (e *Executor) runCommand(ctx context.Context, t *taskfile.Task, call taskfi
|
|||||||
Stdout: stdOut,
|
Stdout: stdOut,
|
||||||
Stderr: stdErr,
|
Stderr: stdErr,
|
||||||
})
|
})
|
||||||
defer func() {
|
if closeErr := close(err); closeErr != nil {
|
||||||
if err := close(err); err != nil {
|
e.Logger.Errf(logger.Red, "task: unable to close writer: %v", closeErr)
|
||||||
e.Logger.Errf(logger.Red, "task: unable to close writer: %v", err)
|
|
||||||
}
|
}
|
||||||
}()
|
|
||||||
if execext.IsExitError(err) && cmd.IgnoreError {
|
if execext.IsExitError(err) && cmd.IgnoreError {
|
||||||
e.Logger.VerboseErrf(logger.Yellow, "task: [%s] command error ignored: %v", t.Name(), err)
|
e.Logger.VerboseErrf(logger.Yellow, "task: [%s] command error ignored: %v", t.Name(), err)
|
||||||
return nil
|
return nil
|
||||||
|
Reference in New Issue
Block a user