Skip to content

Using "outputTo" with "terminal" in combination with "includes" in Taskfile results in child Tasks not being able to run #124

@yoiang

Description

@yoiang

Hello!
We ran into this issue where if we switched outputTo to terminal our included child Taskfile's commands were still being run with the parent's assigned prefix with in the child Taskfile's folder, ie:

Taskfile.yaml

...
includes:
  childtasks: 
    taskfile: ./childtasks_folder/Taskfile.yaml
    dir: ./childtasks_folder/
...

./childtasks_folder/Taskfile.yaml

...
tasks:
  dotask:
    cmds:
      - go_nuts
...

Running with outputTo=terminal would run from ./childtasks/ correctly but include the prefix childtasks as given by the parent Taskfile.yaml resolving to childtasks:dotask rather than just dotask.

This problem does not exist with the default outputTo settings!

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: outputChanges related to the vscode output window and terminal

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions