-
-
Notifications
You must be signed in to change notification settings - Fork 763
Open
Labels
os: windowsIssues that affect users on Windows.Issues that affect users on Windows.
Description
Description
When running the task CLI tool on Windows, the ROOT_DIR variable appears to return an incorrectly formatted path, missing the expected backslashes \.
Steps to Reproduce:
- Create a Taskfile.yaml with the following content:
version: '3'
tasks:
default:
- echo {{.ROOT_DIR}}- Run task from the extracted binary location:
C:\Users\WDAGUtilityAccount\Downloads\task_windows_amd64>task
Expected Behavior:
The output should correctly print the full directory path with backslashes:
C:\Users\WDAGUtilityAccount\Downloads\task_windows_amd64
Actual Behavior:
The output is missing backslashes:
C:UsersWDAGUtilityAccountDownloadstask_windows_amd64
Version
3.42.1
Operating system
Windows
Experiments Enabled
No response
Example Taskfile
version: '3'
tasks:
default:
- echo {{.ROOT_DIR}}Metadata
Metadata
Assignees
Labels
os: windowsIssues that affect users on Windows.Issues that affect users on Windows.