Skip to content
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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

rhodgkins
Copy link
Contributor

@rhodgkins rhodgkins commented Jan 23, 2025

Fixes #8131

This updates readdirRecursiveHelper by adding in a basePath parameter which is used for the directory that should be read, while the existing path parameter is now used as the path for filtering (and recursing into directories). This means that all ignores are based on the relative directory to basePath and not the full filesystem path as they were before.

@rhodgkins
Copy link
Contributor Author

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

@rhodgkins rhodgkins changed the title Failing test for #8131 Fix for #8131 Jan 24, 2025
@@ -16,22 +16,24 @@ export interface ReaddirRecursiveFile {
}

async function readdirRecursiveHelper(options: {
Copy link
Contributor

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.

Copy link
Contributor Author

@rhodgkins rhodgkins Jan 28, 2025

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?

@blidd-google blidd-google self-requested a review January 31, 2025 19:45
Copy link
Contributor

@blidd-google blidd-google left a 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?

@rhodgkins rhodgkins changed the title Fix for #8131 Fix for functions.ignore excluding deeper directories Feb 3, 2025
@rhodgkins
Copy link
Contributor Author

@blidd-google done - LMK if you need anything else. Thanks again

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

firebase.json: functions.ignore not including deeper directories
3 participants