Skip to content

[5.10 🍒][Dependency Scanning] Only optionally try to resolve imports of 'Foo.Private' submodules to Foo_Private top-level modules. #68842

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

Merged

Conversation

artemcm
Copy link
Contributor

@artemcm artemcm commented Sep 28, 2023

Cherry-pick of #68841

• Release: Swift 5.10
• Explanation: #66151 implemented support in dependency scanning for a special case of re-mapping imports of Foo.Private to clang modules of form Foo_Private. Such a module may not actually exist and the user did in fact mean a submodule of Foo called Private instead, in which case we do not want to error out during the scan on not being able to find it.
• Scope of Issue: Some projects which rely on importing a clang submodule called Private using the .Private syntax may fail to resolve the dependency.
• Risk: Minimal, this change only affects the code-path which currently leads to a hard scanning failure, making it not error on failure to resolve the potentially-optional _Private module.
• Origination: Explicit Module Build feature development.

Resolves rdar://109426243

…Private' submodules to 'Foo_Private' top-level modules. Such a module may not actually exist and the user did in fact mean a submodule, in which case we do not want to error out during the scan
@artemcm artemcm requested a review from a team as a code owner September 28, 2023 19:58
@artemcm artemcm requested a review from nkcsgexi September 28, 2023 19:58
@artemcm
Copy link
Contributor Author

artemcm commented Sep 28, 2023

@swift-ci test

@artemcm artemcm merged commit 3c3ade3 into swiftlang:release/5.10 Sep 29, 2023
@artemcm artemcm deleted the 510OptionalPrivateClangSubmodule branch September 29, 2023 16:53
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.

2 participants