- Notifications
You must be signed in to change notification settings - Fork928
feat: Add buildinfo package to embed version#840
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
codecovbot commentedApr 3, 2022 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Codecov Report
@@ Coverage Diff @@## main #840 +/- ##==========================================- Coverage 66.06% 65.80% -0.27%========================================== Files 202 205 +3 Lines 13209 13309 +100 Branches 87 87 ==========================================+ Hits 8727 8758 +31- Misses 3600 3655 +55- Partials 882 896 +14
Continue to review full report at Codecov.
|
cli/buildinfo/buildinfo.go Outdated
if !valid { | ||
return repo | ||
} | ||
return repo + "/commit/" + revision |
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.
path.Join
might make this a bit cleaner!
This also resolves build time and commit hash using theGo 1.18 debug/buildinfo package. An external URL is outputtedon running version as well to easily route the caller to arelease or commit.
Uh oh!
There was an error while loading.Please reload this page.
This also resolves build time and commit hash using the
Go 1.18 debug/buildinfo package. An external URL is outputted
on running version as well to easily route the caller to a
release or commit.
Closes#493.