-
Notifications
You must be signed in to change notification settings - Fork 3
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
Improve ts/duration and handling of UPPER acronyms #4
Conversation
) | ||
|
||
func Version() string { |
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.
We don't want to do this - we want the version to be static and part of the build, same as our other OSS repos. Also no Godoc
@mfridman just spent a good amount of time getting this OSS-ready, check in with him before merging
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.
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.
I think pre-Go modules the 2-step commit made sense. But with Go modules and >=go1.12+ this has become the most ergonomic way to handle versioning.
Maybe it would be worth chatting internally if this can be an acceptable way of propagating a version?
EDIT: one of the advantages of reading the BuildInfo
is the go
toolchain synthesizes the pseudo-version, so if you do something like go install ... @main
it'll give you the exact VCS info like commit time/hash.
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.
Got it - let's chat Monday you me @Alfus and make sure we're on same page - if this is the way forward, I'd want to start making it the OSS standard across our repos (can convert over time)
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.
One of the things is id worry what this means for ie dev builds, but yea lets chat Monday
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.
Sure!
No description provided.