Skip to content

fix: fix unknown os vendor on alpine - #80

Merged
eraserix merged 2 commits into
mainfrom
fix/fix-unknown-os-vendor-on-alpine
Oct 13, 2026
Merged

eraserix merged 2 commits into
mainfrom
fix/fix-unknown-os-vendor-on-alpine

Conversation

@eraserix

Copy link
Copy Markdown
Contributor

The error was:

  1. Alpine does no longer provide VERSION_CODENAME in /etc/os-release
  2. The code refused to return a valid OsInfo struct from parsing os-release and just set all the members to "unknown".
  3. Vendor was no longer set, but it is required to install system packages, i.e. to know if apk or apt-get needs to be called
    Feature fails to install

The implemented fix makes OsInfo parsing return whatever information it can get. Undefined fields are set to "unknown".

@eraserix eraserix self-assigned this Oct 13, 2026
@raphaelmeyer
raphaelmeyer self-requested a review October 13, 2026 06:39
@eraserix
eraserix merged commit 3b0f896 into main Oct 13, 2026
40 checks passed
@eraserix
eraserix deleted the fix/fix-unknown-os-vendor-on-alpine branch October 13, 2026 09:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants