fix: typo in os.Getwd error message (#1433)

Signed-off-by: Justin Chadwell <me@jedevc.com>
This commit is contained in:
Justin Chadwell
2023-01-03 14:56:20 +00:00
committed by GitHub
parent 8d36b21237
commit e3d6ffd30e
+1 -1
View File
@@ -50,7 +50,7 @@ type directoryResolver struct {
func newDirectoryResolver(root string, pathFilters ...pathFilterFn) (*directoryResolver, error) {
currentWD, err := os.Getwd()
if err != nil {
return nil, fmt.Errorf("could not gret CWD: %w", err)
return nil, fmt.Errorf("could not get CWD: %w", err)
}
// we have to account for the root being accessed through a symlink path and always resolve the real path. Otherwise
// we will not be able to normalize given paths that fall under the resolver