You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This PR added host/include/smc.h and host/include/smc.c. These files are in the include sub-directory. This directory includes no go files, so Go modules does not include them when go mod vendor is used. Either the h & c files should be moved into the host directory, or a dummy go file should be added to include
To Reproduce
Go mod vendor gopsutil, then try to build:
# github.com/shirou/gopsutil/host
vendor/github.com/shirou/gopsutil/host/host_darwin_cgo.go:9:11: fatal error: 'include/smc.c' file not found
#include "include/smc.c"
^~~~~~~~~~~~~~~
1 error generated.
Environment (please complete the following information):
Windows: [paste the result of ver]
Linux: [paste contents of /etc/os-release and the result of uname -a]
Mac OS: [paste the result of sw_vers and uname -a
FreeBSD: [paste the result of freebsd-version -k -r -u and uname -a]
Describe the bug
host/include/smc.handhost/include/smc.c. These files are in theincludesub-directory. This directory includes no go files, so Go modules does not include them whengo mod vendoris used. Either the h & c files should be moved into the host directory, or a dummy go file should be added toincludeTo Reproduce
Go mod vendor gopsutil, then try to build:
Environment (please complete the following information):
ver]/etc/os-releaseand the result ofuname -a]sw_versanduname -afreebsd-version -k -r -uanduname -a]uname -a]