-
Notifications
You must be signed in to change notification settings - Fork 679
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
feat: add build-time git info #5579
base: develop
Are you sure you want to change the base?
Conversation
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.
👍
The base branch was changed.
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.
👍
oh goody. new flaky tests |
I updated to the latest develop to see if anything changed with those tests, but then I realized @kantai just did that a few hours ago, so I don't think anything has changed with regards to flaky tests since then. |
I think we can be pretty sure that this flakiness is not caused by these changes. I think we can go ahead and merge. |
While working on #5399, I noticed that we have a root-level
build.rs
file that gets git info, but we weren't using that.Because 5399 introduces a build-time constants file, I figured I'd open this PR to also include Git info without needing to specify
GIT_COMMIT
andGIT_BRANCH
ENV variables. This way, you always get the "full version string" regardless of how you runcargo build
. This, along with 5399, means we can be rid of the unhelpful0.0.1
version strings when people do custom builds.I'm relatively ambivalent about this change - let me know what you think.