mirror of
https://github.com/go-task/task.git
synced 2026-07-02 08:58:41 +00:00
Allow calling a task of the root Taskfile from within an included Taskfile
Fixes #161
This commit is contained in:
12
task_test.go
12
task_test.go
@@ -511,3 +511,15 @@ func TestIncludesDependencies(t *testing.T) {
|
||||
}
|
||||
tt.Run(t)
|
||||
}
|
||||
|
||||
func TestIncludesCallingRoot(t *testing.T) {
|
||||
tt := fileContentTest{
|
||||
Dir: "testdata/includes_call_root_task",
|
||||
Target: "included:call-root",
|
||||
TrimSpace: true,
|
||||
Files: map[string]string{
|
||||
"root_task.txt": "root task",
|
||||
},
|
||||
}
|
||||
tt.Run(t)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user