Skip to content

USER_WORKING_DIR stops working in global tasks #2206

@snakeego

Description

@snakeego

Description

Global tasks stop working in this scenario: https://taskfile.dev/usage/#running-a-global-taskfile.
This version doesn't change the ⁠USER_WORKING_DIR variable; it always keeps the ⁠$HOME directory.

Version

3.42.2

Operating system

MacOS

Experiments Enabled

No response

Example Taskfile

version: "3"

tasks:
  pwd:
    dir: '{{.USER_WORKING_DIR}}'
    cmds:
      - pwd

Metadata

Metadata

Assignees

Labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions