macchina icon indicating copy to clipboard operation
macchina copied to clipboard

[BUG] macOS Sonoma is shown as 'macOS 14.0.0 Unknown'

Open caraar12345 opened this issue 1 year ago • 8 comments

Describe the bug macOS Sonoma is shown as macOS 14.0.0 Unknown. This has been fixed in libmacchina so should be a quick fix: https://github.com/Macchina-CLI/libmacchina/pull/163

To Reproduce

  1. Install macchina on macOS Sonoma and run it
  2. ???
  3. Profit

Expected behavior macOS version should show as macOS 14.0.0 Sonoma.

Screenshots Screenshot 2023-09-27 at 12 39 03

macchina --doctor output

❯ macchina -d -i en0
Let's check your system for errors... Here's a summary:

We've collected 18 readouts, including 0 failed read(s) and 1 read(s) which resulted in a warning.
🎉 You are good to go! No failures detected.

1 of the 1 unsuccessful read(s) resulted in a warning:
Readout "Distribution" threw a warning with message: Since you're on macOS, there is no distribution to be read from the system.

System Information You don't have to provide this information if you're not comfortable doing so, but it'll help us solve the issue a lot faster.

  • Operating System: macOS
  • Version: Sonoma 14.0.0
  • Terminal: iTerm2
  • Macchina's version:
    • macchina 6.1.8
    • libmacchina 6.3.5

caraar12345 avatar Sep 27 '23 11:09 caraar12345

Thanks for reporting this, we'll add the macOS latest release to the list.

grtcdr avatar Sep 27 '23 11:09 grtcdr

It looks like it's already there, macchina is just a little bit behind libmacchina, it's only a matter of upgrading its version then.

grtcdr avatar Sep 27 '23 11:09 grtcdr

How would we go about updating its version? I have machine installed through brew.

karimlevallois avatar Dec 24 '23 12:12 karimlevallois

Unless a new version comes out, macchina will continue to report that field as it currently does. I can't say for sure when a new version will arrive.

grtcdr avatar Dec 24 '23 13:12 grtcdr

Unless a new version comes out, macchina will continue to report that field as it currently does. I can't say for sure when a new version will arrive.

So we cannot upgrade libmacchina on its own then?

karimlevallois avatar Dec 24 '23 13:12 karimlevallois

I'm afraid not. You can, in the meantime, build the program from source to get around the issue.

grtcdr avatar Dec 24 '23 13:12 grtcdr

I'm afraid not. You can, in the meantime, build the program from source to get around the issue.

Ah OK, would probably wait then. Is there no way for us to override what it says? Like a custom string in a file?

karimlevallois avatar Dec 24 '23 13:12 karimlevallois

I don't know if we want to include that level of customization. macchina is, after all, supposed to automate the collection and display process. You can temporarily hide that specific readout by listing every other one and explicitly omitting it from the show list in your macchina.toml.

grtcdr avatar Dec 24 '23 14:12 grtcdr

A recent version of macchina detects macOS correctly. I'd built this version from source.

$ macchina --version
macchina     6.2.0
libmacchina  7.2.1
macOS 14.4.1 Sonoma

mikemadden42 avatar May 01 '24 10:05 mikemadden42

As @mikemadden42 has shown, the issue was fixed upstream, it shouldn't be a problem in a future release. I'll close this issue then.

grtcdr avatar May 13 '24 04:05 grtcdr