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

Improve ts/duration and handling of UPPER acronyms #4

Merged
merged 2 commits into from
Mar 15, 2024
Merged

Improve ts/duration and handling of UPPER acronyms #4

merged 2 commits into from
Mar 15, 2024

Conversation

Alfus
Copy link
Contributor

@Alfus Alfus commented Mar 15, 2024

No description provided.

@Alfus Alfus requested a review from rodaine March 15, 2024 19:04
@Alfus Alfus merged commit c81a2a6 into main Mar 15, 2024
4 checks passed
@Alfus Alfus deleted the alfus/ts branch March 15, 2024 20:44
)

func Version() string {
Copy link
Member

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

Copy link
Member

Choose a reason for hiding this comment

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

Talked to @Alfus offline - @mfridman let's talk about this Monday, I'm against this style

Copy link
Member

@mfridman mfridman Mar 16, 2024

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.

Copy link
Member

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)

Copy link
Member

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

Copy link
Member

Choose a reason for hiding this comment

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

Sure!

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.

4 participants