-
-
Notifications
You must be signed in to change notification settings - Fork 740
Open
Labels
state: needs triageWaiting to be triaged by a maintainer.Waiting to be triaged by a maintainer.
Description
- Task version: 3.33.1
- Operating system: MacOS 14.4.1
- Experiments enabled: none
Taskfile.yml:
---
version: "3"
vars:
PATH: /tmp/{{ .NAME }}/.tmp
tasks:
print:
cmds:
- echo {{ .NAME }}
- echo {{ .PATH }}
the result of the task:
[]$ task print NAME="test"
task: [print] echo test
test
task: [print] echo /tmp//.tmp
/tmp//.tmp
I didn't find any reference to it in the documentation, but it looks like Taskfile does not expand the environmental variable properly, variable NAME
is expanded in the task section, but when it's assigned to another var in global section (PATH: /tmp/{{ .NAME }}/.tmp
it's just empty string instead
Metadata
Metadata
Assignees
Labels
state: needs triageWaiting to be triaged by a maintainer.Waiting to be triaged by a maintainer.