Releases: shirou/gopsutil
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
v4.24.11
What's Changed
host
- add anolis family with anolis platform in host/host_linux.go by @wangyu-geek in #1745
New Contributors
- @wangyu-geek made their first contribution in #1745
Full Changelog: v4.24.10...v4.24.11
v4.24.10
What's Changed
cpu
mem
- fix(mem): possible memory leak on Windows by @uubulb in #1722
- feat(mem): Add windows commit stats by @n4nn31355 in #1720
Other Changes
New Contributors
- @n4nn31355 made their first contribution in #1720
Full Changelog: v4.24.9...v4.24.10
v4.24.9
Important Change
Since #1702, the Darwin implementation has been switched from cgo to purego (Great contribution from @uubulb). As a result, cgo has been removed from the Darwin implementation, making cross-compilation easier. We believe this change will not have any impact, but if you encounter any issues, please create an issue.
What's Changed
cpu, mem, sensors, disk, process on darwin
process
- [process][darwin][freebsd][linux][openbsd] Make process.Children not reliant on pgrep by @Lomanic in #1706
- implement process:NumFDs for Windows by @al-online in #1712
- Fix resolution for process create time limited to seconds by @joshiste in #1713
Other Changes
- fix: remove coverall and godocs.io badge from README by @shirou in #1705
- [common] add HOST_PROC_MOUNTINFO to EnvMap by @atoulme in #1707
- Fix error message typo in sensors_linux by @henrygd in #1715
New Contributors
- @al-online made their first contribution in #1712
- @joshiste made their first contribution in #1713
- @henrygd made their first contribution in #1715
Full Changelog: v4.24.8...v4.24.9
v4.24.8
What's Changed
disk
- fix(IOCountersWithContext): Fix the issue of not using names to fil ter devices in func IOCountersWithContext of the windows implementation by @zmyzheng in #1688
- [disk][windows]: ignore network drive when not ready by @shirou in #1699
process
- Fix parsing of /proc/pid/smaps when path is empty by @pgimalac in #1691
- Refactoring the algorithm for calculating CPU usage by @TheBestLL in #1692
- Fix panic on OpenBSD and FreeBSD systems if KinfoProc size has an unexpected size by @fivitti in #1694
Other Changes
- Fix badge link in README.md by @Yurunsoft in #1695
- fix golangcilint errors, ignore gosec G115 by @shirou in #1697
- fix: golangci lint with max -> maxConn by @shirou in #1693
New Contributors π
- @zmyzheng made their first contribution in #1688
- @Yurunsoft made their first contribution in #1695
- @pgimalac made their first contribution in #1691
- @TheBestLL made their first contribution in #1692
- @fivitti made their first contribution in #1694
Full Changelog: v4.24.7...v4.24.8
v4.24.7
Important Notice Regarding Value Changes on mem.SwapMemory() on Windows
In change #1677, the values returned by mem.SwapMemory()
on Windows have been significantly revised. Previously, these values were calculated from the PERFORMANCE_INFORMATION
structure of the GetPerformanceInfo
win32 function, but this calculation was incorrect. Consequently, it has been adjusted to align with the psutil implementation. As a result, the values returned by mem.SwapMemory()
are expected to differ greatly from previous values.
What's Changed
docker
mem
Other Changes
- fix: read temperature sensors darwin arm by @Girbons in #1672
- fix: remove macos11 and add ubuntu-24.04 on GitHub runner list. by @shirou in #1676
New Contributors
Full Changelog: v4.24.6...v4.24.7
v4.24.6
What's Changed
host
- Issue 1658: Fix for parsing error where 'day,' is ignored on AIX uptime check by @aidangill-projects in #1659
- Resolved Issue 1661 - AIX Runtime Panic in Host by @aidangill-projects in #1663
sensors
- fix memory leak by @thechampagne in #1656
- fix: package misnaming in
sensors_freebsd.go
by @uubulb in #1668
Other Changes
New Contributors
- @thechampagne made their first contribution in #1656
- @aidangill-projects made their first contribution in #1659
- @govrin made their first contribution in #1655
- @uubulb made their first contribution in #1668
Full Changelog: v4.24.5...v4.24.6
What's Changed
host
- Issue 1658: Fix for parsing error where 'day,' is ignored on AIX uptime check by @aidangill-projects in #1659
- Resolved Issue 1661 - AIX Runtime Panic in Host by @aidangill-projects in #1663
Other Changes
- fix memory leak by @thechampagne in #1656
- Fix boot time not returning stat file value by @govrin in #1655
- fix: package misnaming in
sensors_freebsd.go
by @uubulb in #1668
New Contributors
- @thechampagne made their first contribution in #1656
- @aidangill-projects made their first contribution in #1659
- @govrin made their first contribution in #1655
- @uubulb made their first contribution in #1668
Full Changelog: v4.24.5...v4.24.6