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

[package-extractor] Fix package extractor filter for subdirectories of non-matching folders #4217

Merged
merged 2 commits into from
Jun 26, 2023

Conversation

D4N14L
Copy link
Member

@D4N14L D4N14L commented Jun 26, 2023

Summary

Package extractor allows for providing filters to modify the list of files to extract. However, because the file system traversal analyzes both folders and files, patterns that specified a subfolder of a non-matching parent folder would not be traversed and would be excluded from the generated extraction. This change ensures that all folders are traversed and only files are matched against the filters.

For example, if patternsToInclude is src/**/*, files within the src folder would not actually be collected, since src does not match the pattern src/**/* itself, even though the files and folders within do match.

How it was tested

Tested locally against the project that the issue was encountered in.

@octogonz octogonz merged commit 6a5a77e into microsoft:main Jun 26, 2023
@iclanton iclanton deleted the user/danade/FixPackageExtractorFilter branch June 27, 2023 00:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants