-
Notifications
You must be signed in to change notification settings - Fork 17.9k
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
"golang.org/x/sys" no longer includes the required "golang.org/x/sys/windows" on the windows operating system #63902
Comments
please fill out the report form properly and provide a reproducer |
@StephanVerbeeck as @seankhliao mentioned Please fill out form. But when I tried high level both below commands worked.
|
Wait a bit, why would you "go install" a module, install is for executables, "go get" is for modules. Please don't ask for more information as what I have provided is sufficient to reproduce the problem and there is not added value in describing a more complex setup (my project) than is needed to reproduce the problem. What you told generates this error
To test whether the command is successful look for any of these (newly created as listed below) directories and see if they contain the subdirectory "golang.org\x\sys\windows". On older versions of GO this was the case but on the latest version this OS-dependent module is not installed as somehow the code that detects the OS uses for compiling "got broken". C:\Users\*\go\golang.org\x\sys C:\Users\*\go\pkg\mod\cache\download\golang.org\x\sys C:\Users\*\go\pkg\mod\github.com\cilium\ebpf@v0.11.0\internal\sys |
Without more information, we don't think this is an error in Unlike many projects, the Go project does not use GitHub Issues for general discussion or asking questions. GitHub Issues are used for tracking bugs and proposals only. For questions please refer to https://github.com/golang/go/wiki/Questions |
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
What operating system and processor architecture are you using (
go env
)?What did you do?
use windows API functions
compilation error occurs in source "advapi32.go" of module "github.com/lxn/win".
What did you expect to see?
compiles OK
What did you see instead?
compiler automatically adds an import for the package "golang.org/x/sys/windows" but DOES NOT INSTALL this package.
In earlier versions of GO this did work and packages that were specific for the windows operating system were installed correctly.
Motivation = this did work before and now doesn't work anymore (existing code that has compiled for 3 years now is not compiling anymore).
The text was updated successfully, but these errors were encountered: