Skip to content

fix(deps): update module github.com/zcalusic/sysinfo to v1.2.3 - #351

Open
renovate[bot] wants to merge 1 commit into
masterfrom
renovate/github.com-zcalusic-sysinfo-1.x
Open

renovate[bot] wants to merge 1 commit into
masterfrom
renovate/github.com-zcalusic-sysinfo-1.x

Conversation

@renovate

@renovate renovate Bot commented Oct 24, 2026 •

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Confidence
github.com/zcalusic/sysinfo v1.1.3 → v1.2.3 age confidence

Release Notes

zcalusic/sysinfo (github.com/zcalusic/sysinfo)

v1.2.3

Compare Source

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: zcalusic/sysinfo@v1.2.2...v1.2.3

v1.2.2

Compare Source

Memory information per module: every populated DIMM with its slot, vendor, part number, size, speeds and voltage, plus the speed the memory actually runs at.

Upgrade notes

  • Memory contains a slice now (Devices), so Go code can no longer compare Memory values with == or use them as map keys. JSON output only gains new keys.
  • memory.speed is the modules' rated speed, as before. The speed they run at is the new memory.configuredspeed, and the two often differ: DDR4-3200 modules running at 2400 or 2666, DDR5-4800 modules running at 6000 with EXPO.
  • Only system memory counts. Memory devices of arrays used for video memory or flash are no longer added to memory.size.

New

  • memory.devices, one entry per populated module: locator, bank, vendor, model (part number), serial, size, type, formfactor, rank, speed, configuredspeed and voltage (in mV). Placeholder strings such as "Not Specified" and all-zero serial numbers are left out. Thanks to Haraguroicha for the idea (#​12).
  • memory.slots, the number of memory sockets, populated or not.
  • memory.configuredspeed, the configured (running) speed of the first module.

Fixes

  • A speed reported in the SMBIOS 3.3 extended fields showed as 65535 MT/s.
  • Modules whose size the firmware gives in KB were skipped.

Documentation

  • The README's sample output shows the new fields.

Build and testing

  • The SMBIOS parser is tested against tables from five physical machines (Supermicro and Dell Xeon servers, a Quanta EPYC server, an AMD desktop with DDR5) and a QEMU virtual machine, with serial numbers and UUIDs removed. All of them also seed the fuzz test.

Full Changelog: zcalusic/sysinfo@v1.2.1...v1.2.2

v1.2.1

Compare Source

Better ARM support: CPU vendor and model, and the OS architecture on every platform.

Fixes

  • ARM CPUs get a vendor and model. ARM kernels show no vendor_id and arm64 kernels no model name, so both were empty; they're now mapped from the CPU implementer and part numbers, as lscpu does. A big.LITTLE chip lists each core type, e.g. Cortex-A55/Cortex-A76 (Moses Narrow, #​28).
  • kernel.architecture is set on arm64, armhf, riscv64 and other architectures, and on musl distributions such as Alpine. Only the glibc amd64 and i386 loaders were recognized; the architecture now comes from the ELF header of /bin/sh. Names follow Debian's (amd64, arm64, armhf, ...).

Build and testing

  • The SMBIOS parser has tests: synthetic tables for DIMM sizes, the type 19 fallback, short records and truncated tables, a real table from a QEMU virtual machine, and a fuzz test.

Full Changelog: zcalusic/sysinfo@v1.2.0...v1.2.1

v1.2.0

Compare Source

A larger release: a newer Go, a removable flag for storage, DDR5 memory types, TinyGo support, and fixes for memory corruption in network detection, malformed SMBIOS tables and 32-bit disk sizes. sysinfo also never writes machine ID files any more.

Upgrade notes

  • Requires Go 1.27.
  • sysinfo never writes machine ID files. It used to copy /etc/machine-id and /var/lib/dbus/machine-id over each other when one was missing or they differed. That filled an intentionally empty /etc/machine-id (image templates, systemd first boot), wrote into containers, and during systemd's first boot replaced a valid D-Bus machine ID with "uninitialized". It now reads the systemd machine ID, falls back to the D-Bus one, ignores "uninitialized", and changes nothing.
  • cpu.threads counts all online CPUs, from /proc/cpuinfo. It came from runtime.NumCPU(), which counts only the CPUs the process may run on, so it was too low under taskset or a cpuset.
  • storage[].removable is new and always present, false included (Bipin B Narayan).

New

  • Memory types DDR5, LPDDR5 and HBM3, from the current SMBIOS specification (apocelipes).
  • The cpuid package builds with TinyGo (Moses Narrow).

Fixes

  • Network detection let the kernel write past the end of a Go struct: the SIOCETHTOOL ioctl copies back the whole struct ifreq, which the Go side declared too short.
  • A truncated SMBIOS table, or a record shorter than the fields read from it, could crash the parser or make it read the next record's bytes.
  • Disks of 2 TiB and larger got a wrong size on 32-bit systems.
  • AlmaLinux and Rocky Linux kept an empty version when their release file was missing; it now comes from os-release.
  • Read errors in /etc/os-release, /etc/sysconfig/clock and the udev database are no longer ignored.

Documentation

  • The README has fresh sample output, installs the demo with go install, and links pkg.go.dev.

Build and testing

  • CI is back on GitHub Actions: builds for amd64, 386 and arm64, go vet, tests, golangci-lint (with a configuration in the repo) and govulncheck.

Full Changelog: zcalusic/sysinfo@v1.1.3...v1.2.0


Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate

renovate Bot commented Oct 24, 2026

Copy link
Copy Markdown
Contributor Author

ℹ️ Artifact update notice

File name: go.mod

In order to perform the update(s) described in the table above, Renovate ran the go get command, which resulted in the following additional change(s):

  • The go directive was updated for compatibility reasons

Details:

Package Change
go 1.26.3 -> 1.27

@renovate renovate Bot changed the title fix(deps): update module github.com/zcalusic/sysinfo to v1.2.0 fix(deps): update module github.com/zcalusic/sysinfo to v1.2.1 Oct 25, 2026
@renovate
renovate Bot force-pushed the renovate/github.com-zcalusic-sysinfo-1.x branch from f40b673 to 4d8823e Compare October 25, 2026 00:26
@renovate
renovate Bot force-pushed the renovate/github.com-zcalusic-sysinfo-1.x branch from 4d8823e to e78bb7c Compare November 3, 2026 19:22
@renovate renovate Bot changed the title fix(deps): update module github.com/zcalusic/sysinfo to v1.2.1 fix(deps): update module github.com/zcalusic/sysinfo to v1.2.2 Nov 7, 2026
@renovate
renovate Bot force-pushed the renovate/github.com-zcalusic-sysinfo-1.x branch from e78bb7c to ac57e7e Compare November 7, 2026 22:08
@renovate
renovate Bot force-pushed the renovate/github.com-zcalusic-sysinfo-1.x branch from ac57e7e to e433763 Compare November 8, 2026 20:43
@renovate renovate Bot changed the title fix(deps): update module github.com/zcalusic/sysinfo to v1.2.2 fix(deps): update module github.com/zcalusic/sysinfo to v1.2.3 Nov 8, 2026
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.

0 participants