mirror of
https://github.com/go-task/task.git
synced 2025-08-10 22:42:19 +02:00
fix: propagate include vars in multi-level includes (#1256)
This commit is contained in:
17
testdata/include_with_vars_multi_level/Taskfile.yml
vendored
Normal file
17
testdata/include_with_vars_multi_level/Taskfile.yml
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
version: "3"
|
||||
|
||||
includes:
|
||||
lib:
|
||||
taskfile: lib/Taskfile.yml
|
||||
internal: true
|
||||
foo:
|
||||
taskfile: foo/Taskfile.yml
|
||||
bar:
|
||||
taskfile: bar/Taskfile.yml
|
||||
|
||||
tasks:
|
||||
default:
|
||||
cmds:
|
||||
- task: lib:greet
|
||||
- task: foo:lib:greet
|
||||
- task: bar:lib:greet
|
7
testdata/include_with_vars_multi_level/bar/Taskfile.yml
vendored
Normal file
7
testdata/include_with_vars_multi_level/bar/Taskfile.yml
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
version: "3"
|
||||
|
||||
includes:
|
||||
lib:
|
||||
taskfile: ../lib/Taskfile.yml
|
||||
vars:
|
||||
RECEIVER: "bar"
|
7
testdata/include_with_vars_multi_level/foo/Taskfile.yml
vendored
Normal file
7
testdata/include_with_vars_multi_level/foo/Taskfile.yml
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
version: "3"
|
||||
|
||||
includes:
|
||||
lib:
|
||||
taskfile: ../lib/Taskfile.yml
|
||||
vars:
|
||||
RECEIVER: "foo"
|
9
testdata/include_with_vars_multi_level/lib/Taskfile.yml
vendored
Normal file
9
testdata/include_with_vars_multi_level/lib/Taskfile.yml
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
version: "3"
|
||||
|
||||
vars:
|
||||
RECEIVER: "world"
|
||||
|
||||
tasks:
|
||||
greet:
|
||||
cmds:
|
||||
- echo 'Hello {{.RECEIVER}}'
|
Reference in New Issue
Block a user