Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

undefined: "golang.org/x/sys/windows".PROCESS_QUERY_LIMITED_INFORMATION #743

Closed
1 task done
AndreKR opened this issue Aug 7, 2019 · 3 comments
Closed
1 task done

Comments

@AndreKR
Copy link

AndreKR commented Aug 7, 2019

Describe the bug
Error when compiling with Go 1.12:

undefined: "golang.org/x/sys/windows".PROCESS_QUERY_LIMITED_INFORMATION

To Reproduce

package main
import _ "github.com/shirou/gopsutil/process"
func main() {}

Expected behavior
No errors

Environment (please complete the following information):

  • Windows: Microsoft Windows [Version 6.1.7601]

Notes

The constant was recently added to Go (golang/sys@79a91cf), but is not yet available in the current stable version (Go 1.12).

Is this package supposed to work with Go 1.12? Otherwise please close this issue and I'll wait for Go 1.13.

@Lomanic
Copy link
Collaborator

Lomanic commented Aug 7, 2019

I don't think it's related to Go version, but to golang.org/x/sys/windows version, can you try updating it with go get -u golang.org/x/sys/windows?

@AndreKR
Copy link
Author

AndreKR commented Aug 7, 2019

Indeed that works. I was pretty sure those /x/ packages were part of the Go distribution. Sorry for the noise.

@AndreKR AndreKR closed this as completed Aug 7, 2019
@Lomanic
Copy link
Collaborator

Lomanic commented Aug 7, 2019

No problem, glad to help. See also https://github.com/golang/go/wiki/SubRepositories

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants