mirror of
https://github.com/go-task/task.git
synced 2025-07-17 01:43:07 +02:00
Fixed absolute path resolving for included tasksfile
This commit is contained in:
@ -29,7 +29,12 @@ func Taskfile(dir string, entrypoint string) (*taskfile.Taskfile, error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
for namespace, includedTask := range t.Includes {
|
for namespace, includedTask := range t.Includes {
|
||||||
|
if filepath.IsAbs(includedTask.Taskfile) {
|
||||||
|
path = includedTask.Taskfile
|
||||||
|
} else {
|
||||||
path = filepath.Join(dir, includedTask.Taskfile)
|
path = filepath.Join(dir, includedTask.Taskfile)
|
||||||
|
}
|
||||||
|
|
||||||
info, err := os.Stat(path)
|
info, err := os.Stat(path)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
|
Reference in New Issue
Block a user