shirou / gopsutil

psutil for golang
Other
10.56k stars 1.58k forks source link

mac build error #986

Closed iwalkerr closed 3 years ago

iwalkerr commented 3 years ago
Xnip2020-11-05_16-54-15

System version MacBook Pro (15-inch, 2016)

sakal commented 3 years ago

I have this issue too on 2.10.8, 2.10.9 and problem disappeared on 3.10.8

Lomanic commented 3 years ago

Quite a duplicate of #958, update golang.org/x/sys (go get -u golang.org/x/sys). Wasn't one of the selling points to have converted gopsutil to go modules and having go.mod and go.sum files (as nobody cared about dep and its Gopkg.lock) to solve this kind of issues?

PS: please don't post screenshots of texts, nobody can use a search engine with an image nor copy its content

iwalkerr commented 3 years ago

#958相当,更新golang.org/x/sysgo get -u golang.org/x/sys)。难道不是将gopsutil转换为go模块并拥有go.mod和go.sum文件(没人关心的dep及其Gopkg.lock)来解决此类问题的卖点之一吗?

PS:请不要张贴文本的屏幕截图,没有人可以使用带有图像的搜索引擎或复制其内容

ok,thanks

iwalkerr commented 3 years ago

我在2.10.8、2.10.9上也遇到了这个问题,而在3.10.8上问题就消失了

thanks