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

Include additional build-time information in the version string #637

Merged
merged 4 commits into from
Aug 19, 2024

Conversation

dandavison
Copy link
Contributor

@dandavison dandavison commented Aug 19, 2024

Fixes #635

Support injection of build-time information into the version string printed by the binary on startup and via --version. See code comments and docs for further explanation.

Possibly caused this in CI

  shell: C:\Program Files\PowerShell\7\pwsh.EXE -command ". '{0}'"
?   	github.com/temporalio/cli/cmd/temporal	[no test files]
?   	github.com/temporalio/cli/temporalcli/commandsmd	[no test files]
?   	github.com/temporalio/cli/temporalcli/internal/cmd/gen-commands	[no test files]
?   	github.com/temporalio/cli/temporalcli/internal/printer/test	[no test files]
2024/08/19 13:15:51 INFO  No logger configured for temporal client. Created default one.
2024/08/19 13:15:52 INFO  No logger configured for temporal client. Created default one.
panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xc0000005 code=0x0 addr=0x20 pc=0xd3a40a]
This reverts commit a3c507a.
Copy link
Member

@cretz cretz left a comment

Choose a reason for hiding this comment

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

LGTM. My only concern is that this now effectively becomes part of the public API and we can't change or remove this var. But that's probably ok.

@dandavison
Copy link
Contributor Author

Thanks @cretz. Yeah, so we basically have to be happy with it being github.com/temporalio/cli/temporalcli.buildInfo.

@dandavison dandavison merged commit a4acce5 into main Aug 19, 2024
7 checks passed
@dandavison dandavison deleted the build-info branch August 19, 2024 20:24
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.

[Feature Request] Add information about server build to start-dev banner
2 participants