Skip to content

[Caching] Fix versioned canImport check for swift module #71260

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 31, 2024

Conversation

cachemeifyoucan
Copy link
Contributor

Fix the ExplicitCASModuleLoader check for if canImport works for a specific swift module. It was mistakenly using the clang caching schema to load the underlying module but in reality, it should only load swift module with swift caching schema.

In future, we should let dependency scanner to report version/underlying version for the modules it enounters so the versioned canImport check doesn't need to load and parse the module/TBD file to figure out if the check is successful or not.

rdar://120554271

Fix the ExplicitCASModuleLoader check for if `canImport` works for a
specific swift module. It was mistakenly using the clang caching schema
to load the underlying module but in reality, it should only load swift
module with swift caching schema.

In future, we should let dependency scanner to report version/underlying
version for the modules it enounters so the versioned canImport check
doesn't need to load and parse the module/TBD file to figure out if the
check is successful or not.

rdar://120554271
@cachemeifyoucan
Copy link
Contributor Author

@swift-ci please smoke test

1 similar comment
@cachemeifyoucan
Copy link
Contributor Author

@swift-ci please smoke test

@cachemeifyoucan cachemeifyoucan merged commit a74eb6b into swiftlang:main Jan 31, 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