-
Notifications
You must be signed in to change notification settings - Fork 18k
syscall: go generate fails because golang.org/x/sys/windows/mkwinsyscall command isn't vendored #41916
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
Comments
Change https://golang.org/cl/260860 mentions this issue: |
This comment has been minimized.
This comment has been minimized.
The error message in the output comes from the Line 764 in e92ce92
That path is guarded by this condition: Line 757 in e92ce92
The path Given the timing, there may be an interaction here with CL 253747. |
Ah, now I understand. There are several issues at play here:
|
As an immediate workaround, As a longer-term fix, we should either add the I'll file a separate issue for the poor diagnostic. It seems to be closely related to #38748, but may or may not share a root cause. |
Change https://golang.org/cl/261499 mentions this issue: |
I am not big module expert. So I used
in https://go-review.googlesource.com/c/go/+/260860 (I am still waiting for reviewers). I hope it is OK for the moment. Alex |
Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
I tried to regenerate $GOROOT/syscall/zsyscall_windows.go file. I run
go generate
in syscall directory.What did you expect to see?
I expected to see no errors. And have zsyscall_windows.go file updated.
What did you see instead?
and my zsyscall_windows.go does not change.
It appears golang.org/x/sys/windows/mkwinsyscall is broken now that we have to use modules.
We also need to update internal/syscall/windows and internal/syscall/windows/registry package. I also use mkwinsyscall in a couple of my own projects. I also suspect that some people use it too. So we need some easy to use solution.
@bcmills for suggestions. I am happy to use whatever approach you suggest.
Thank you.
Alex
The text was updated successfully, but these errors were encountered: