-
Notifications
You must be signed in to change notification settings - Fork 84
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
feat: implement version command #419
feat: implement version command #419
Conversation
Codecov Report
@@ Coverage Diff @@
## main #419 +/- ##
==========================================
- Coverage 34.60% 34.09% -0.52%
==========================================
Files 23 24 +1
Lines 1254 1273 +19
==========================================
Hits 434 434
- Misses 809 828 +19
Partials 11 11
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
133861c
to
74edd19
Compare
Signed-off-by: Junjie Gao <junjiegao@microsoft.com>
74edd19
to
ba52b41
Compare
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.
According to the spec, we should always print out all three of Version
, Go Version
, and Git Commit
.
If the commit is not tagged, we should use unreleased
as the build metadata.
if BUILD_METADATA is not defined in ENVIRONMENT variable, use `unreleased` as the value Signed-off-by: Junjie Gao <junjiegao@microsoft.com>
|
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.
LGTM
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.
LGTM
Please build it by
make build
command to include git commit informationExample
If it does
not
build bymake build
command, the output will beSigned-off-by: Junjie Gao junjiegao@microsoft.com