1
0
mirror of https://github.com/go-task/task.git synced 2025-06-15 00:15:10 +02:00

Add support for multi-level includes and cyclic include detection

This commit is contained in:
tylermmorton
2022-01-14 22:38:37 -05:00
parent 79f595d8d1
commit 02e7ff27c7
9 changed files with 127 additions and 20 deletions

View File

@ -106,7 +106,12 @@ func (e *Executor) Run(ctx context.Context, calls ...taskfile.Call) error {
// Setup setups Executor's internal state
func (e *Executor) Setup() error {
var err error
e.Taskfile, err = read.Taskfile(e.Dir, e.Entrypoint)
e.Taskfile, err = read.Taskfile(&read.ReaderNode{
Dir: e.Dir,
Entrypoint: e.Entrypoint,
Parent: nil,
Optional: false,
})
if err != nil {
return err
}