Skip to content
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

please update to os_info = "3.5.0" to fix os detection for various linux distros #10940

Closed
stefson opened this issue Aug 5, 2022 · 4 comments · Fixed by #10943
Closed

please update to os_info = "3.5.0" to fix os detection for various linux distros #10940

stefson opened this issue Aug 5, 2022 · 4 comments · Fixed by #10943
Labels
C-bug Category: bug

Comments

@stefson
Copy link

stefson commented Aug 5, 2022

Problem

on linux-x64 (gentoo in my case) cargo -Vv shows wrong value for os:

cargo 1.64.0-nightly (4fd148c47 2022-08-03)
release: 1.64.0-nightly
commit-hash: 4fd148c47e733770c537efac5220744945d572ef
commit-date: 2022-08-03
host: x86_64-unknown-linux-gnu
libgit2: 1.4.2 (sys:0.14.2 vendored)
libcurl: 7.83.1-DEV (sys:0.4.55+curl-7.83.1 vendored ssl:OpenSSL/1.1.1q)
os: OracleLinux 2.8.0 [64-bit]

the actuall fix in stanislav-tkach/os_info#317 is part of os_info v.3.5.0, please pull that update into the cargo nightly. Thank you.

@stefson stefson added the C-bug Category: bug label Aug 5, 2022
@weihanglo
Copy link
Member

Thank you for this posting!
The way to update is relatively simple. Updating os_info in Cargo.toml to os_info = 3.5.0 should be sufficient.

@stefson
Copy link
Author

stefson commented Aug 7, 2022

@weihanglo thanks for the fix; however I'm not very familiar with how the rust/cargo live branch works - how will the update be pulled into rust-lang/rust? I just compiled the live branch, and their cargo is actually four days old :D

@weihanglo
Copy link
Member

The process has been documented here. Generally, Cargo team updates it about once a week. Whoever wants to update can follow the guide and post an PR against rust-lang/rust.

@stefson
Copy link
Author

stefson commented Aug 7, 2022

thanks, that sounds like a little over the top for my needs. I'll just wait happily for the update to be pulled in through rust-lang/rust git branch, so that I can confirm the fix (hopefully)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants