-
Notifications
You must be signed in to change notification settings - Fork 904
fix: Prefix buildinfo tag with "v" #1256
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
Conversation
Codecov Report
@@ Coverage Diff @@
## main #1256 +/- ##
==========================================
+ Coverage 65.80% 65.87% +0.07%
==========================================
Files 275 272 -3
Lines 17972 17784 -188
Branches 214 216 +2
==========================================
- Hits 11826 11715 -111
+ Misses 4907 4843 -64
+ Partials 1239 1226 -13
Continue to review full report at Codecov.
|
buildinfo/buildinfo.go
Outdated
if semver.Build(tag) == "" { | ||
// The tag must be prefixed with "v" otherwise the | ||
// semver library will return an empty string. | ||
if semver.Build("v"+tag) == "" { | ||
tag += revision | ||
} | ||
version = "v" + tag |
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.
Why not just move this above the semver.Build
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.
Good point...
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.
Fixed!
This fixes the format of production and development build tags.
This fixes the format of production and development build tags.
This fixes the format of production and development build
tags.