Skip to content

[CAS] Improve error message when module cache key is missing #10517

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
May 1, 2025

Conversation

cachemeifyoucan
Copy link

When a module cache key is missing, emit better diagnostics that

  • It is clear it is a cache key missing, so a potential dependency missing, not a CAS error
  • For other compiler consumers, like a swift compiler that uses a different cache key schema than the clang include tree, it is possible that a detailed cache key cannot be printed. Don't emit extra schema mismatch message that can confuse the users

rdar://149707188

@cachemeifyoucan
Copy link
Author

@swift-ci please test llvm

2 similar comments
@cachemeifyoucan
Copy link
Author

@swift-ci please test llvm

@cachemeifyoucan
Copy link
Author

@swift-ci please test llvm

@cachemeifyoucan
Copy link
Author

ping

When a module cache key is missing, emit better diagnostics that

* It is clear it is a cache key missing, so a potential dependency
  missing, not a CAS error
* For other compiler consumers, like a swift compiler that uses a
  different cache key schema than the clang include tree, it is possible
  that a detailed cache key cannot be printed. Don't emit extra schema
  mismatch message that can confuse the users

rdar://149707188
@cachemeifyoucan
Copy link
Author

@swift-ci please test llvm

@cachemeifyoucan
Copy link
Author

Test failures are irrelevant. Merging.

@cachemeifyoucan cachemeifyoucan merged commit a6aa93c into swiftlang:next May 1, 2025
0 of 2 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.

2 participants