- Task version: 3.37.2
- Operating system: MacOS
- Experiments enabled: TASK_X_MAP_VARIABLES=2
Taskfile:
version: '3'
vars:
ENV_NAME:
sh: echo $(hostname)_$(users)
includes:
test_import:
taskfile: '{{.ENV_NAME}}.yml'
tasks:
test:
cmds:
- echo {{.ENV_NAME}}
This will fail with:
stat /path/to/my/workspace/.yml: no such file or directory
It seems that ENV_NAME evaluates to an empty string inside test_import.
Taskfile:
This will fail with:
It seems that
ENV_NAMEevaluates to an empty string inside test_import.