-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Add formatting client version to the x.x.x style.
#7711
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
pakrym-oai
left a comment
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.
Can we simplify and always use built-in vars ?
|
|
||
| fn format_client_version_from_parts(major: &str, minor: &str, patch: &str) -> String { | ||
| const DEV_VERSION: &str = "0.0.0"; | ||
| const FALLBACK_VERSION: &str = "99.99.99"; |
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.
curious how did you think about making this fallback on the client vs server?
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.
Followed your approach. Clients better have control instead of aggressively overriding it when possible
To avoid regression with special builds like alphas