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

+org-stats -- Get the contributor stats summary from all repos of any given organization #5705

Merged

Conversation

kevinmichaelchen
Copy link
Contributor

@kevinmichaelchen kevinmichaelchen commented Mar 25, 2024

@kevinmichaelchen
Copy link
Contributor Author

cc @caarlos0

@kevinmichaelchen
Copy link
Contributor Author

$ org-stats version

https://github.com/caarlos0/org-stats (devel) @ none

Not sure if there's a way to set the version.

@jhheider
Copy link
Contributor

according to golang/go#29228 (which is, admittedly, old) BuildInfo.Main.Version always returns "(devel)". so, the best we can do is update the source.

@jhheider jhheider merged commit 57eaacc into pkgxdev:main Mar 25, 2024
5 checks passed
@caarlos0
Copy link

you can pass -ldflags to go build with something like -s -w -X main.version={{ .Version }} -X main.commit={{ .Commit }} -X main.date={{ .CommitDate }}

@caarlos0
Copy link

@jhheider
Copy link
Contributor

hm. i think main.version is the only capitalization i didn't try. i'll update it.

@jhheider
Copy link
Contributor

hm, interestingly, not working for me. i'll keep playing with it.

@kevinmichaelchen kevinmichaelchen deleted the new/github.com/caarlos0/org-stats branch March 25, 2024 22:50
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.

None yet

3 participants