Skip to content

Respect ignore_error when calling another task from a command #363

@shilangyu

Description

@shilangyu
  • Task version: master
  • OS: Linux

When calling task other with the following Taskfiles:

this works, the error is ignored

version: "3"

tasks:
  bad:
    cmds:
      - exit 1
  other:
    cmds:
      - cmd: task bad
        ignore_error: true
      - echo hello

this does not work, nothing is printed

version: "3"

tasks:
  bad:
    cmds:
      - exit 1
  other:
    cmds:
      - task: bad
        ignore_error: true
      - echo hello

Metadata

Metadata

Assignees

Labels

area: execChanges related to the execution of commands.good first issueIssues that are good for first-time contributors to pick up.

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions