1
0
mirror of https://github.com/go-task/task.git synced 2025-11-23 22:24:45 +02:00

fix: return taskrc config even if there is an error (#2461)

This commit is contained in:
Valentin Maerten
2025-11-02 17:15:58 +01:00
committed by GitHub
parent 74b93f6eef
commit 6a7cfa58f9
2 changed files with 2 additions and 4 deletions

View File

@@ -59,11 +59,11 @@ func GetConfig(dir string) (*ast.TaskRC, error) {
// Find all the nodes from the given directory up to the users home directory
absDir, err := filepath.Abs(dir)
if err != nil {
return nil, err
return config, err
}
entrypoints, err := fsext.SearchAll("", absDir, defaultTaskRCs)
if err != nil {
return nil, err
return config, err
}
// Reverse the entrypoints since we want the child files to override parent ones