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

fix: search for all taskrc work as expected (#2424)

This commit is contained in:
Valentin Maerten
2025-09-16 19:35:31 +02:00
committed by GitHub
parent 4836d42828
commit 700bf00107

View File

@@ -57,7 +57,11 @@ func GetConfig(dir string) (*ast.TaskRC, error) {
}
// Find all the nodes from the given directory up to the users home directory
entrypoints, err := fsext.SearchAll("", dir, defaultTaskRCs)
absDir, err := filepath.Abs(dir)
if err != nil {
return nil, err
}
entrypoints, err := fsext.SearchAll("", absDir, defaultTaskRCs)
if err != nil {
return nil, err
}
@@ -84,6 +88,5 @@ func GetConfig(dir string) (*ast.TaskRC, error) {
}
config.Merge(localConfig)
}
return config, nil
}