mirror of
https://github.com/go-task/task.git
synced 2025-06-23 00:38:19 +02:00
Fixes to Taskfile including:
- Disallow recursive Taskfile including (i.e. included Taskfile including other Taskfiles) - Write test for included a file instead of a directory
This commit is contained in:
@ -477,8 +477,9 @@ func TestIncludes(t *testing.T) {
|
||||
Target: "default",
|
||||
TrimSpace: true,
|
||||
Files: map[string]string{
|
||||
"main.txt": "main",
|
||||
"included.txt": "included",
|
||||
"main.txt": "main",
|
||||
"included_directory.txt": "included_directory",
|
||||
"included_taskfile.txt": "included_taskfile",
|
||||
},
|
||||
}
|
||||
tt.Run(t)
|
||||
|
Reference in New Issue
Block a user