1
0
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:
Andrey Nering
2018-10-13 17:52:09 -03:00
parent 5a28560177
commit 5eb1a1f7f5
5 changed files with 19 additions and 3 deletions

View File

@ -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)