Repository navigation
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-releasebut no/etc/os-release. The/usr/libfile 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