Releases: shirou/gopsutil
v4.25.9
What's Changed
cpu
- get max Mhz per package without wmi by @OrbintSoft in #1919
- [cpu][windows]: add logical processor count error handling by @shirou in #1925
- Family and PhysicalID without wmi by @OrbintSoft in #1926
- Cores count without wmi by @OrbintSoft in #1915
disk
- [disk][linux]: fix lint (gofumpt) by @shirou in #1928
- fix infinite loop by @StefanoBalzarottiNozomi in #1922
process
Other Changes
- fix: github action labeler.yml confirugration format by @shirou in #1918
- limit memory usage on warnings list by @StefanoBalzarottiNozomi in #1920
New Contributors
- @wmypku made their first contribution in #1906
- @StefanoBalzarottiNozomi made their first contribution in #1920
Full Changelog: v4.25.8...v4.25.9
v4.25.8
Important Change
Starting from this release, VirtualMemoryStat.Used
on Linux is now calculated based on MemAvailable
in meminfo
. This may cause a difference of approximately 6–10% compared to the previous calculation.
To address this, we have introduced an opt-out mechanism. You can disable the new calculation by setting the context key WillBeDeletedOptOutMemAvailableCalc
to true
. Please note that this option is undocumented and will be removed in six months (Feb. 2026).
For more details, see #1873 and #1882.
What's Changed
cpu
- Do not return an error on unknown CPU stepping by @pgimalac in #1895
- Remove common test helper to skip tests by @rosstimothy in #1894
- feat(cpu): add Neoverse-V2/* other models by @gyuho in #1902
- [cpu][mem][linux]: throw error on Readline failed by @shirou in #1908
disk
mem
process
- process: Fix data race on darwin by @prashantv in #1901
Other Changes
- chore: enable fatcontext linter by @mmorel-35 in #1885
- chore: enable time-date and time-equal rules from revive by @mmorel-35 in #1891
- Fix: use compatible perfstat version to fix aix cgo builds by @gremat in #1910
New Contributors
- @rosstimothy made their first contribution in #1894
- @prashantv made their first contribution in #1901
- @gyuho made their first contribution in #1902
- @gremat made their first contribution in #1910
Full Changelog: v4.25.7...v4.25.8
v4.25.7
What's Changed
disk
- fix(disk): handle NVMe controller notation in IOCounters on Linux by @skartikey in #1878
mem
process
Other Changes
- chore: enable unused-receiver from revive by @mmorel-35 in #1883
- enable shadow from govet by @mmorel-35 in #1863
- fix: windows-2019 runner image has been deprecated by @shirou in #1881
New Contributors
- @martoche made their first contribution in #1872
- @halaney made their first contribution in #1887
- @skartikey made their first contribution in #1878
Full Changelog: v4.25.6...v4.25.7
v4.25.6
What's Changed
disk
- [disk][linux]: fix parsing mount option when use 1/mounts on Partition by @shirou in #1861
- Fetch stats from folder mounted volumes by @dloucasfx in #1534
mem
process
Other Changes
- chore: fix some minor issues in the comments by @shandongzhejiang in #1870
- enable all go-critic by @mmorel-35 in #1856
- fix: relace golangcilint on var-naming for package name by @shirou in #1871
New Contributors
- @dloucasfx made their first contribution in #1534
- @shandongzhejiang made their first contribution in #1870
- @kruskall made their first contribution in #1868
Full Changelog: v4.25.5...v4.25.6
v4.25.5
What's Changed
cpu
- Remove wmi for Get physical CPU core count by @OrbintSoft in #1839
- fix ignore nakedret by @mmorel-35 in #1847
- Fix issues with GetLastError() usage by @secDre4mer in #1848
docker
- rename containerid arguments to containerID by @mmorel-35 in #1862
host
Other Changes
- fix(ST1005): Incorrectly formatted error string by @mmorel-35 in #1846
- [darwin]: bump purego veresion to 0.8.3 by @shirou in #1852
- chore: enable staticcheck by @mmorel-35 in #1842
New Contributors
- @OrbintSoft made their first contribution in #1839
Full Changelog: v4.25.4...v4.25.5
v4.25.4
What's Changed
cpu
- fix nil ptr by @dvovk in #1835
- Fix win32_SystemProcessorPerformanceInformation struct by @niemp100 in #1831
disk
- [disk][linux] add bcachefs magic by @NewbieOrange in #1838
host
Other Changes
- fix: update github actions runner images by @shirou in #1841
- chore: enable govet linter by @mmorel-35 in #1825
- [chore]: bump golangci-lint to v2.1.1 by @mmorel-35 in #1829
- chore: enable ineffassign linter by @mmorel-35 in #1843
New Contributors
- @NewbieOrange made their first contribution in #1838
- @dvovk made their first contribution in #1835
- @niemp100 made their first contribution in #1831
- @s0ders made their first contribution in #1840
Full Changelog: v4.25.3...v4.25.4
v4.25.3
Important Notice
Starting from this release, we have set the Go version in go.mod
to 1.23. Moving forward, we plan to continuously update it to the second most recent Go release.
We understand that gopsutil runs on various platforms, and some applications using it may only support older Go versions. With this release, those applications might no longer be able to build. However, as discussed in #1804, we made this change because golang.org/x/sys, which gopsutil depends on, has adopted a policy of continuously updating its Go version.
That said, we intend to be conservative about syntax changes and avoid unnecessary modifications whenever possible.
What's Changed
disk
host
- [net][host][aix] Fix build and Makefile by @Lomanic in #1809
- [host][process]: fix type missmatch test. by @shirou in #1821
- [host]: fix potential error on CI test on Windows. by @shirou in #1830
process
Chore
- chore: enable unnecessary-stmt from revive by @mmorel-35 in #1812
- chore: enable thelper and usetesting linters by @mmorel-35 in #1814
- chore(golangci-lint): cover aix and cgo by @mmorel-35 in #1805
- chore: use testify instead of testing by @mmorel-35 in #1815
- chore: enable begin rule from thelper by @mmorel-35 in #1816
- chore: enable var-naming from revive by @mmorel-35 in #1817
- chore: enable gocritic linter by @mmorel-35 in #1813
- chore: enable unused-parameter from revive by @mmorel-35 in #1783
- chore: reduce number of executed jobs by @mmorel-35 in #1799
- chore: update go version in module by @mmorel-35 in #1804
- fix: address nolint contextcheck by @mmorel-35 in #1826
Other Changes
- fix: deprecated set-output by @mmorel-35 in #1810
- fix: enable loong64 architecture in lint workflow by @mmorel-35 in #1827
New Contributors
Full Changelog: v4.25.2...v4.25.3
v4.25.2
What's Changed
cpu
- chore: enable golangci-lint on Windows and MacOS by @mmorel-35 in #1785
- chore(golangci-lint): GOOS and GOARCH matrix by @mmorel-35 in #1797
net
process
- fix:
Process.CmdlineSliceWithContext
incorrect on Windows by @RomainMuller in #1796
Other Changes
- chore: enable use-any from revive by @mmorel-35 in #1784
- fix(golangci-lint): configuration typo by @mmorel-35 in #1798
New Contributors
- @RomainMuller made their first contribution in #1796
Full Changelog: v4.25.1...v4.25.2
v4.25.1
What's Changed
Other Changes
- chore: explicit revive rules by @mmorel-35 in #1778
- chore: call actions/checkout before actions/setup-go to benefit from native cache by @mmorel-35 in #1779
Full Changelog: v4.24.12...v4.25.1
v4.24.12
What's Changed
cpu
- enable all rules of perfsprint linter by @mmorel-35 in #1762
- refactor(darwin): optimize string allocation by @uubulb in #1768
mem
- enable testifylint linter by @mmorel-35 in #1743
net
- [openbsd] set ConnectionsPid to return NotImplemented by @tuftedocelot in #1757
- Refactor: merge base functions to net.go by @shirou in #1764
process
- fix[posix,windows]: release process after os.FindProcess() by @NitroCao in #1716
- enable all rules of testifylint linter by @mmorel-35 in #1761
- [freebsd]: add CWD by @shirou in #1765
sensors
Other Changes
- fix[github]: deprecate macos-12, add macos-15 by @shirou in #1760
- [doc]: Update README for supported metrics. by @shirou in #1766
New Contributors
- @NitroCao made their first contribution in #1716
- @tuftedocelot made their first contribution in #1757
- @chuangbo made their first contribution in #1767
Full Changelog: v4.24.11...v4.24.12