Skip to content

[Dependency Scanning] Do not add cross-import overlays that involve the main module being scanned #64659

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
Mar 28, 2023

Conversation

artemcm
Copy link
Contributor

@artemcm artemcm commented Mar 27, 2023

For example, when scanning a source module Foo, which, when depending on module Bar causes a cross-import overlay _Foo_Bar to be added, do not add this cross-import overlay when scanning Foo itself. For example, if Foo adds a dependency on Bar itself in its own dependency graph.

These scenarios otherwise can typically result in a dependency cycle, since modules participating in adding a cross-import overlay are, themselves, depended upon by the cross-import overlay module.

…he main module being scanned

For example, when scanning a source module `Foo`, which, when depending on module `Bar` causes a cross-import overlay `_Foo_Bar` to be added, do not add this cross-import overlay when scanning `Foo` itself. For example, if `Foo` adds a dependency on `Bar` itself in its own dependency graph.
@artemcm
Copy link
Contributor Author

artemcm commented Mar 27, 2023

@swift-ci smoke test

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