Closed Equationzhao closed 10 months ago
This is a duplicate of #1309 as you are using an obsolete v2 version from 2021, switch to v3.
Confirmed with
go mod init issue1539
go get -v github.com/shirou/gopsutil/v3/...
GOOS=openbsd go build github.com/shirou/gopsutil/v3/...
Describe the bug I was trying to build my project in Openbsd and got the following compile error
To Reproduce
Expected behavior pass the compilation
Environment (please complete the following information):
ver
]/etc/os-release
and the result ofuname -a
]sw_vers
anduname -a
freebsd-version -k -r -u
anduname -a
]uname -a
]sw_vers
uname -a
I was doing a cross-compile in macOS, target platform
OpenBSD arm64
Additional context
command
go env