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
Include Swift compiler version in addition to swiftlang version and clang version #2052
Conversation
I'm not sure which is the best approach here. This is certainly more comprehensible. The current implementation is probably more correct, but perhaps not meaningfully so. Outside of some very small potential edge cases, I think these should behave the same. What do you think @BobElDevil? |
I'm concerned about Xcode patch version updates. For example (the below should not be actual values):
If we use the former a build cache will still be valid, but if we use the latter will not be valid anymore. However, it may be safer to use the latter value if we take into account a situation that there is no binary compatibility between patch version updates. |
Yeah, incompatibility between patch versions is what I'm worried about too. So I think we should stick with the swiftlang/clang version. However I think for readability, we could take this opportunity to pull in both parts of the version string, so we can make more readable messaging. So while we still compare compiler versions, we still change it from: |
But is the latter valid? I'm not sure that we can count on compatibility between patch versions. |
That will not be guaranteed. Also, I'm not sure if swiftlang/clang versions are bumped between patch versions. |
I think we should stick with the current implementation because it's safer. But I think it'd be fine to pull in the Swift version like @BobElDevil suggested. |
…iftlang and clang version) That would be more comprehensible.
7a74946
to
513d9b0
Compare
513d9b0
to
3f81593
Compare
That would be more comprehensible.
See also #1983 and #1984.
Originally I assumed this in this comment.