Skip to content

Seems like pipefail is not applied to status commands #2469

@arikkfir

Description

@arikkfir

Description

Taskfile:

version '3'

set:
  - errexit
  - nounset
  - pipefail
  - xtrace

...
  foo:
    cmd: echo RUNNING FOO
    status:
      - cat non-existent-file | jq '{}'
...

Running this:

$ task foo
task: Task "foo" is up to date

As a user, I expected pipefail to be applied and used for status commands as well, not just for cmd/cmds.

Version

3.45.4

Operating system

macOS

Experiments Enabled

No response

Example Taskfile

version '3'

set:
  - errexit
  - nounset
  - pipefail
  - xtrace

tasks:
  foo:
    cmd: echo RUNNING FOO
    status:
      - cat non-existent-file | jq '{}'

Metadata

Metadata

Assignees

No one assigned

    Labels

    state: needs triageWaiting to be triaged by a maintainer.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions