-
-
Notifications
You must be signed in to change notification settings - Fork 761
Open
Description
Task version: Task version: v3.38.0 (h1:O7kgA6BfwktXHPrheByQO46p3teKtRuq1EpGnFxNzbo=)
Operating system: Ubuntu 2204
Experiments enabled: No
version: '3'
includes:
taska:
taskfile: tmp/a.yml
tasks:
empty:
cmds:
- task: taska:task1version: '3'
vars:
location:
sh: echo "/tmp"
tasks:
task1:
dir: "{{.location}}"
cmds:
- echo "dir is {{.location}}"
- pwd> task empty
task: [taska:task1] echo "dir is /tmp"
dir is /tmp
task: [taska:task1] pwd
/home/xxxx/tmp
I suppose it should be /tmp? If I change to dir: "/{{.location}}", it become what I expect.
task1:
dir: "/{{.location}}"
cmds:
- echo "dir is {{.location}}"
- pwd
> task empty
task: [taska:task1] echo "dir is /tmp"
dir is /tmp
task: [taska:task1] pwd
/tmp
also, if I change to:
includes:
taska: tmp/a.yml
output is also correct:
> task empty
task: [taska:task1] echo "dir is /tmp"
dir is /tmp
task: [taska:task1] pwd
/tmp
yonas, brettinternet, vaz-ar, iomarcovalente, hugo-ricateau and 3 more
Metadata
Metadata
Assignees
Labels
No labels