-
Notifications
You must be signed in to change notification settings - Fork 817
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
Fix for Empty Build Number in cmd Version #1481
Conversation
/describe |
Not sure why I have an unrelated commit on my fork lol 😅 |
it probably depends on how you have updated your fork... can you try:
|
b696f4f
to
6d3c58d
Compare
Thank you ! It helped |
cdee466
to
64ba8cf
Compare
/review |
PR Analysis
PR Feedback
How to useInstructions
|
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.
few nits, also please squash your commits
64ba8cf
to
891e2af
Compare
Signed-off-by: Mehdi Moussaif <m.moussaif42@gmail.com> Use cobra's OutOrStdout instead of os.Stdout Signed-off-by: Mehdi Moussaif <m.moussaif42@gmail.com> Test cmd version output Signed-off-by: Mehdi Moussaif <m.moussaif42@gmail.com> Apply recommanded changes Signed-off-by: Mehdi Moussaif <m.moussaif42@gmail.com> Unneeded if and print statement
891e2af
to
887f6a0
Compare
well done @mohaidoss ! |
PR Type:
Bug fix
PR Description:
This PR includes two main changes:
PR Main Files Walkthrough:
files:
cmd/version/version.go
: Modified the 'RunE' function in the 'GetVersionCmd' command. Instead of directly using 'cautils.BuildNumber', a 'versionCheckRequest' object is created and used. This ensures that even if the 'BuildNumber' is empty, 'unknown' will be displayed as the version.