Skip to content

v1.2.3

Latest

Choose a tag to compare

@zcalusic zcalusic released this 08 Nov 19:23
v1.2.3

Builds on every platform Go supports, and finds the OS release file in /usr/lib too.

Fixes

  • The package failed to compile anywhere but Linux and macOS (FreeBSD and Windows, for example), which broke cross-platform builds of programs using it. It now builds everywhere. sysinfo itself is still Linux-only: on other platforms it returns little or no information. Thanks to Patrick Menoti (#41) and lidawei (#44) for the reports.
  • The OS name, vendor and version were empty on systems that have /usr/lib/os-release but no /etc/os-release. The /usr/lib file is now read as a fallback, as os-release(5) specifies. Thanks to Andrew Pollock (#47).

Build and testing

  • CI also builds for darwin, freebsd and windows.
  • The os-release lookup has tests.

Full Changelog: v1.2.2...v1.2.3