-
Notifications
You must be signed in to change notification settings - Fork 10.3k
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
[Basic] Revise version printing #32345
Conversation
@swift-ci please smoke test |
An aside / digression: I'd not bother truncation the git hashes. Yes, truncation is useful when using git with
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm, like a reasonable thing, but I would prefer that if we do this, we update the build to avoid the clang version definition in the generated file.
Any reason to not just use the full abbreviated hash from git?
What do you mean by "full abbreviated hash"? That sounds like a contradiction :-) |
No longer generating/including I'd still like people to consider not truncating the git hashes, but I don't feel strongly about this. @swift-ci please smoke test |
Haha, fair point. What I meant is that rather than truncating in the code to some limit why not print the exact result of I agree with your point that we shouldn't bother truncating to some "safe" amount. But we can have the best of the both worlds as git knows how to print the short form too. |
I think this is one of those scenarios where it's easy to over-think a problem. I'd vote for just doing the full hash, and see when/if people complain. If people do, then we can address the complaints rather than speculate. |
That also seems fine by me. I’m also okay with you doing that in a follow up change if you would like. |
I think we should get someone at Apple to review this given the output of the REPL on my macOS box |
Now that we use the LLVM mono-repo, we don't need to worry about clang's version number. Also, git has the ability to estimate the safe number of digits a hash can be truncated to and now git estimates that large projects like LLVM and Linux "require" 12 digits for safe commit hash abbreviation. Let's stay a little ahead of the curve and statically truncate to 15.
@swift-ci please test |
Now that we use the LLVM mono-repo, we don't need to worry about clang's version number. Also, git has the ability to estimate the safe number of digits a hash can be truncated to and now git estimates that large projects like LLVM and Linux "require" 12 digits for safe commit hash abbreviation. Let's stay a little ahead of the curve and statically truncate to 15.