We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1bac40b commit 491da0cCopy full SHA for 491da0c
task.go
@@ -143,6 +143,21 @@ func (e *Executor) Setup() error {
143
return fmt.Errorf(`task: output option "%s" not recognized`, e.Taskfile.Output)
144
}
145
146
+ if !version.IsV21(v) {
147
+ err := fmt.Errorf(`task: Taskfile option "ignore_error" is only available starting on Taskfile version v2.1`)
148
+
149
+ for _, task := range e.Taskfile.Tasks {
150
+ if task.IgnoreError {
151
+ return err
152
+ }
153
+ for _, cmd := range task.Cmds {
154
+ if cmd.IgnoreError {
155
156
157
158
159
160
161
e.taskCallCount = make(map[string]*int32, len(e.Taskfile.Tasks))
162
for k := range e.Taskfile.Tasks {
163
e.taskCallCount[k] = new(int32)
0 commit comments