Skip to content

[ScanDependency] Allow continue searching for testable module #73227

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

cachemeifyoucan
Copy link
Contributor

When swift dependency scanner first finds a binary module for a testable import, verify if the module is built for enable-testing or not. If not, keeps searching in case there is a second testable binary module in the search path.

Previously, the first binary module will always be accepted by scanner and rely on the importer to provide a good diagnostics. Now the scanner will emit a warning before continue searching, so user understands why the binary in the search path is not taken.

@cachemeifyoucan
Copy link
Contributor Author

@swift-ci please smoke test

When swift dependency scanner first finds a binary module for a testable
import, verify if the module is built for enable-testing or not. If not,
keeps searching in case there is a second testable binary module in the
search path.

Previously, the first binary module will always be accepted by scanner
and rely on the importer to provide a good diagnostics. Now the scanner
will emit a warning before continue searching, so user understands why
the binary in the search path is not taken.
@cachemeifyoucan
Copy link
Contributor Author

@swift-ci please smoke test

@xedin xedin removed their request for review April 24, 2024 20:42
@cachemeifyoucan cachemeifyoucan merged commit 03786da into swiftlang:main Apr 25, 2024
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