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 Search Subfolders For Packages Not Working in Swift Package Workspaces #1425

Conversation

abdelmagied94
Copy link
Contributor

Enabling the searchSubfoldersForPackages flag didn't work when the workspace folder was a valid Swift Package. This issue occurred due to an early return statement that prevented further search. This PR resolves the issue by removing the premature return and refactoring the related logic into a utility. Additionally, unit tests have been added to ensure correct behavior.

Copy link
Contributor

@plemarquand plemarquand left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the patch with detailed tests! I'll check out the code and try it out tomorrow. I have just a couple of nitpick comments.

Also, the windows CI failures are expected at the moment.

Copy link
Contributor

@plemarquand plemarquand left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tried this out and it looks good to me, thanks!

@plemarquand plemarquand merged commit 306d130 into swiftlang:main Mar 10, 2025
13 of 15 checks passed
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.

None yet

2 participants