Using `shirou/gopsutil` Go package as a vendored package fails on macOS (10.14.6)
问题 I was trying to build influx/telegraf locally and vendor all the packages using go mod vendor command. However, interestingly, the build fails after that with the following error: # 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" ^~~~~~~~~~~~~~~ Steps to reproduce (after setting GOPATH variable): # Fetch the project, e.g. influx/telegraf go get -d github.com/influxdata/telegraf