Skip to content

Certain preconditions broken in >= 3.39.x #1836

@wburningham

Description

@wburningham

Environment info:

  • Task version: 3.39.0
  • Operating system: OS: macOS 14.6.1 23G93 arm64
  • Experiments enabled: TASK_X_REMOTE_TASKFILES

Description:

Certain preconditions start failing in >= 3.39.0 that used to work in 3.38.0.

Steps to reproduce:

❯ cat taskfile.dist.yaml
---
version: 3

tasks:
  default:
    preconditions:
      - docker --version
    cmd: docker --version⏎                                                                                                         

❯ docker --version
Docker version 25.0.3, build 4debf41

Expected results

The task should execute like it does in v3.38.0

❯ go run github.com/go-task/task/v3/cmd/[email protected]
task: [default] docker --version
Docker version 25.0.3, build 4debf41

Actual results

The task fails in a precondition in version >= v3.39.0

❯ go run github.com/go-task/task/v3/cmd/[email protected]
task: `docker --version` failed
task: precondition not met
exit status 1

❯ go run github.com/go-task/task/v3/cmd/[email protected]
task: `docker --version` failed
task: precondition not met
exit status 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    state: can't reproNot enough information was given to reproduce the issue described.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions