-
Notifications
You must be signed in to change notification settings - Fork 991
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
extend conan version
to report current python and system for troubleshooting
#16102
Conversation
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.
Looks good
conan/cli/commands/version.py
Outdated
'system': { | ||
'version': platform.version(), | ||
'platform': platform.platform(), | ||
'os': platform.system() + ' ' + platform.release(), |
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.
These two can return an empty string.
If release is empty, then the field would be "Linux "
which might be tricky for downstream users to properly parse if that happens to them :)
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.
Do we prefer to divide it in two? something like this:
'os': platform.system() + ' ' + platform.release(), | |
'version': platform.version(), | |
'platform': platform.platform(), | |
'os_system': platform.system(), | |
'os_release':platform.release(), |
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.
Reads better, but not too sold on the names with the prefix. No strong opinions either!
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.
Probably just system
and release
is good.
I'd say better them separately, this is structured information, better separated than us artificially joining them with _
Co-authored-by: James <memsharded@gmail.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! super helpful too
Changelog: Feature: Extend
conan version
to report current python and system for troubleshooting.Docs: conan-io/docs#3691
Close: #15974