Skip to content
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

Remove custom build info script #2635

Merged

Conversation

alexshtin
Copy link
Member

What changed?
Remove custom build info script.

Why?
Go 1.18 has built in support for emeded build info.

How did you test it?
Run localy.

Potential risks
Build time is now git time (not real build time but time of the current commit).

Is hotfix candidate?
No.

@alexshtin alexshtin requested a review from a team as a code owner March 22, 2022 21:26
@alexshtin alexshtin force-pushed the feature/remove-custom-build-info branch from cc0cec6 to ccf743d Compare March 22, 2022 21:41
Comment on lines +70 to +76
case "vcs.revision":
InfoData.GitRevision = setting.Value
case "vcs.time":
if gitTime, err := time.Parse(time.RFC3339, setting.Value); err == nil {
InfoData.GitTime = gitTime
}
case "vcs.modified":
Copy link
Member

Choose a reason for hiding this comment

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

how do you find those keys? any documentation about what are the available keys?

Copy link
Member Author

Choose a reason for hiding this comment

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

No, I wasn't able to find the doc. Release notes just describes it in general and I had to dump entire settings struct to see what is there.

Copy link
Member Author

Choose a reason for hiding this comment

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

Also go version -m temporal-server shows it.

@alexshtin alexshtin merged commit af9130d into temporalio:master Mar 22, 2022
@alexshtin alexshtin deleted the feature/remove-custom-build-info branch March 22, 2022 23:23
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