Skip to content

feat: add build-time git info #5579

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 7 commits into from
Feb 11, 2025
Merged

feat: add build-time git info #5579

merged 7 commits into from
Feb 11, 2025

Conversation

hstove
Copy link
Contributor

@hstove hstove commented Dec 16, 2024

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 and GIT_BRANCH ENV variables. This way, you always get the "full version string" regardless of how you run cargo build. This, along with 5399, means we can be rid of the unhelpful 0.0.1 version strings when people do custom builds.

I'm relatively ambivalent about this change - let me know what you think.

@hstove hstove requested a review from a team as a code owner December 16, 2024 23:29
jferrant
jferrant previously approved these changes Dec 17, 2024
@hstove
Copy link
Contributor Author

hstove commented Dec 20, 2024

Great suggestions @obycode and @jbencin ! Implemented.

Copy link
Contributor

@obycode obycode left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@hstove hstove added this to the 3.1.0.0.5 milestone Jan 24, 2025
@hstove hstove self-assigned this Jan 24, 2025
obycode
obycode previously approved these changes Jan 24, 2025
@aldur aldur modified the milestones: 3.1.0.0.5, 3.1.0.0.6 Feb 4, 2025
Base automatically changed from feat/update-cargo-versions to develop February 4, 2025 20:17
@wileyj wileyj dismissed stale reviews from obycode and jferrant February 4, 2025 20:17

The base branch was changed.

Copy link
Contributor

@obycode obycode left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@obycode
Copy link
Contributor

obycode commented Feb 7, 2025

oh goody. new flaky tests ☹️

@obycode
Copy link
Contributor

obycode commented Feb 7, 2025

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.

@obycode
Copy link
Contributor

obycode commented Feb 10, 2025

I think we can be pretty sure that this flakiness is not caused by these changes. I think we can go ahead and merge.

@hstove hstove added this pull request to the merge queue Feb 11, 2025
Merged via the queue into develop with commit fd416d4 Feb 11, 2025
2 checks passed
@hstove hstove deleted the feat/build-time-git-consts branch February 11, 2025 15:46
@blockstack-devops
Copy link
Contributor

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@stacks-network stacks-network locked as resolved and limited conversation to collaborators Feb 19, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
Status: Status: ✅ Done
Development

Successfully merging this pull request may close these issues.

7 participants