Skip to content

[5.10] Serialization: Ignore missing potentially non-required dependencies when listing imports #68588

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
merged 1 commit into from
Sep 19, 2023

Conversation

xymus
Copy link
Contributor

@xymus xymus commented Sep 18, 2023

Indexing looks through all dependencies recursively to index to find all system modules to index. Make sure it ignores dependencies that were not loaded, we can trust the earlier dependency loading logic to have correctly loaded dependencies depending on the context.

…etImportedModules

The service `ModuleFile::getImportedModules` is called after the
dependency loading logic runs. We can trust this previous logic to have
correctly loaded optional dependencies. In `getImportedModules` we can
just ignore such missing dependencies.

rdar://115372249
@xymus xymus added the 🍒 release cherry pick Flag: Release branch cherry picks label Sep 18, 2023
@xymus xymus requested a review from bnbarham September 18, 2023 16:49
@xymus xymus requested a review from a team as a code owner September 18, 2023 16:49
@xymus
Copy link
Contributor Author

xymus commented Sep 18, 2023

@swift-ci Please test

@xymus xymus merged commit ecfac0b into swiftlang:release/5.10 Sep 19, 2023
@xymus xymus deleted the get-loaded-optional-deps-5.10 branch September 19, 2023 18:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🍒 release cherry pick Flag: Release branch cherry picks
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants