Skip to content

[ModuleInterface] Determine package-only resolution need based on input mode #78867

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
Jan 24, 2025

Conversation

artemcm
Copy link
Contributor

@artemcm artemcm commented Jan 23, 2025

This fixes behavior introduced in #77686 for implicitly-built modules.

In implicit builds, implicit interface build sub-invocations inherit their parent invocation's requested action, which means the code was failing to detect that we were building an interface, not source, and erroneously resulted in enabling in-package module dependency resolution.

Resolves rdar://143505814

…ut mode

Instead of requested action. In implicit builds, implicit interface build sub-invocations inherit their parent invocation's requested action, which the code was failing to detect that we were building an interface, not source, and erroneously resulted in enabling in-package module dependency resolution.

Resolves rdar://143505814
@artemcm artemcm requested a review from xymus January 23, 2025 22:14
@artemcm artemcm requested a review from tshortli as a code owner January 23, 2025 22:14
@artemcm
Copy link
Contributor Author

artemcm commented Jan 23, 2025

@swift-ci smoke test

@tshortli
Copy link
Contributor

LGTM. Does this need a cherry-pick back to release/6.1?

Copy link
Contributor

@xymus xymus left a comment

Choose a reason for hiding this comment

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

Thank you!

@artemcm artemcm enabled auto-merge January 23, 2025 23:14
@artemcm
Copy link
Contributor Author

artemcm commented Jan 24, 2025

@swift-ci smoke test

1 similar comment
@artemcm
Copy link
Contributor Author

artemcm commented Jan 24, 2025

@swift-ci smoke test

@artemcm artemcm merged commit 5eb4717 into swiftlang:main Jan 24, 2025
3 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.

3 participants