-
Notifications
You must be signed in to change notification settings - Fork 971
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix for functions.ignore excluding deeper directories #8132
base: master
Are you sure you want to change the base?
Conversation
Have fix for this ready, don't know if you want to allow the tests to be run to fail first and then I can push the fix? LMK |
@@ -16,22 +16,24 @@ export interface ReaddirRecursiveFile { | |||
} | |||
|
|||
async function readdirRecursiveHelper(options: { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems broken to me at the moment - you've changed the signsture of readdirRecursiveHelper but not changed any of its call sites.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The only call sites for this function are itself and the other function and both are updated! You mind being more explicit and pointing out the missing ones please?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM on the code changes, but a couple asks. Can you:
- Provide a more descriptive title for your PR,
- Write a short description describing your solution, and
- Add an entry to the changelog?
@blidd-google done - LMK if you need anything else. Thanks again |
Fixes #8131
This updates
readdirRecursiveHelper
by adding in abasePath
parameter which is used for the directory that should be read, while the existingpath
parameter is now used as the path for filtering (and recursing into directories). This means that all ignores are based on the relative directory tobasePath
and not the full filesystem path as they were before.