1
0
mirror of https://github.com/go-task/task.git synced 2025-07-15 01:35:00 +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

@ -2,12 +2,14 @@ version: '2'
includes:
included: ./included
included_taskfile: ./Taskfile2.yml
tasks:
default:
cmds:
- task: gen
- task: included:gen
- task: included_taskfile:gen
gen:
cmds:

6
testdata/includes/Taskfile2.yml vendored Normal file
View File

@ -0,0 +1,6 @@
version: '2'
tasks:
gen:
cmds:
- echo included_taskfile > included_taskfile.txt

View File

@ -3,4 +3,4 @@ version: '2'
tasks:
gen:
cmds:
- echo included > included.txt
- echo included_directory > included_directory.txt