Skip to content

Conversation

@trulede
Copy link
Contributor

@trulede trulede commented Dec 6, 2025

Support task calls with ignore_error.

  • Parse ignore_error into the cmd object for task calls.
  • Handle the error condition after a task call, ignoring if error_ignore was set.

fixes #363

Example task definition

version: "3"

tasks:
  bad:
    cmds:
      - exit 1
  default:
    cmds:
      - task: bad
        ignore_error: true
      - echo hello
@vmaerten vmaerten changed the title Support error_ignore for a task call. Dec 12, 2025
@vmaerten vmaerten self-requested a review December 12, 2025 21:25
Copy link
Member

@vmaerten vmaerten left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@vmaerten vmaerten changed the title feat: support error_ignore for a task call Dec 12, 2025
@vmaerten vmaerten merged commit ea933bc into go-task:main Dec 12, 2025
13 checks passed
vmaerten added a commit that referenced this pull request Dec 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants