dhoomakethu / stress

stress testing with GO
MIT License
32 stars 10 forks source link

go\src\github.com\shirou\gopsutil\process\process_windows.go:174:13: undefined: "golang.org/x/sys/windows".EnumProcesses #1

Open DarwinJS opened 4 years ago

DarwinJS commented 4 years ago

I'm very interested in using this - but there seems to be changes in underlying apis?

Ran go get -u all to be sure I don't have old versions - same problem.

Any help is appreciated!

dhoomakethu commented 4 years ago

Apologies for the delay, I will take a look. What OS are you trying to build btw?

jekkay commented 4 years ago

i encounter the same problem. Win10 、 64bit

# github.com/shirou/gopsutil/process
D:\4.go\pkg\mod\github.com\shirou\gopsutil@v2.20.2+incompatible\process\process_windows.go:174:13: undefined: "golang.org/x/sys/windows".EnumProcesses
jekkay commented 4 years ago

I'm very interested in using this - but there seems to be changes in underlying apis?

Ran go get -u all to be sure I don't have old versions - same problem.

Any help is appreciated!

https://github.com/shirou/gopsutil/issues/743

just upgrade the package

go get -u golang.org/x/sys

this works for me!