-
-
Notifications
You must be signed in to change notification settings - Fork 56
Do not mix stdout and stderr in version detection #862
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
Consider the strange strange case that a user wants to start their app through Steam. And steam provides a 32 bit LDPRELOAD in 2024. So the output is actually ``` CompletedProcess(args=['git', 'describe', '--long', '--always', '--tags', '--dirty', '--first-parent'], returncode=0, stdout=b"ERROR: ld.so: object '/home/mark/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.\nv0.5.0-3-g94e5939-dirty\n") ``` Which then wrecks any access to the version variable. Korinj knew that these kinds of bugs would happen...
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.
Korinj knew that these kinds of bugs would happen...
😂
Probably good to then also show the stderr in the warning message? |
Ah in the case of failure. Sure. |
Will do |
I know you're a power-user, but this is next-level shit. |
ValveSoftware/steam-for-linux#6718 Just for reference |
Please feel free to suggest and edit the formatting Also handling in the case that you have errors in the subprocess command:
(of course, i had to simulate the errors by editing the source....) |
I honestly couldn’t really believe the failure mode myself. I have been using git describe tricks for 6 years plus….. |
Consider the strange strange case that a user wants to start their app through Steam.
And steam provides a 32 bit LDPRELOAD in 2024.
So the output is actually
Which then wrecks any access to the version variable.
Korinj knew that these kinds of bugs would happen...