Skip to content

the order of task under deps is random #2117

@sinlov

Description

@sinlov

Description

The order of task under deps is random. Most of the time, the running order will affect the execution result.

task --experiments                                 
* GENTLE_FORCE:     off
* REMOTE_TASKFILES: off
* MAP_VARIABLES:    off
* ENV_PRECEDENCE:   off

Version

3.41.0

Operating system

linux, windows, macOS

Experiments Enabled

No response

Example Taskfile

version: '3'
silent: true

tasks:
  a:
    desc: "task a"
    internal: true
    cmds:
      - echo "a"

  b:
    desc: "task b"
    internal: true
    cmds:
      - echo "b"

  c:
    desc: "task c"
    internal: true
    cmds:
      - echo "c"

  tests.deps.sequence:
    desc: show deps sequence
    deps:
      - task: a
      - task: b
      - task: c

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions