Skip to content

Commit 700bf00

Browse files
authored
fix: search for all taskrc work as expected (#2424)
1 parent 4836d42 commit 700bf00

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

taskrc/taskrc.go

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,11 @@ func GetConfig(dir string) (*ast.TaskRC, error) {
5757
}
5858

5959
// Find all the nodes from the given directory up to the users home directory
60-
entrypoints, err := fsext.SearchAll("", dir, defaultTaskRCs)
60+
absDir, err := filepath.Abs(dir)
61+
if err != nil {
62+
return nil, err
63+
}
64+
entrypoints, err := fsext.SearchAll("", absDir, defaultTaskRCs)
6165
if err != nil {
6266
return nil, err
6367
}
@@ -84,6 +88,5 @@ func GetConfig(dir string) (*ast.TaskRC, error) {
8488
}
8589
config.Merge(localConfig)
8690
}
87-
8891
return config, nil
8992
}

0 commit comments

Comments
 (0)