-
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
x/sys/windows: compile error with Go 1.11 #34742
Comments
This is a bit cleaner and makes it more explicit what's happening, along with a documenting comment. Change-Id: I30c92f8576c72b05ebdb4634c68023237bde3cbf Reviewed-on: https://go-review.googlesource.com/c/sys/+/199519 Run-TryBot: Jason A. Donenfeld <Jason@zx2c4.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org>
Does the issue disappear with Go 1.12 or 1.13? @bradfitz Is 1.11 still supported? |
No, it isn't. For certain low-level or important packages, though, we try not to unnecessarily break old users. At least in some sort of best effort untested fashion, which is kinda lame. I think we should be definitive about saying "no, we don't support that" or actually make it tested. But the current situation is somewhere in between: we don't test Go 1.11 at all, but at the same time this kinda sucks, breaking Go 1.11 users for something like this. So maybe it's time to just say that Go 1.11 users should use an older version of this package, or something on the Go 1.11 branch (release-branch.go1.11). |
1.12.1 and 1.13.1 are working for me. I guess now is a good time to upgrade :) Thanks! |
Okay, we'll close this then. Sorry about that. |
Bat win32 XP work only with golang 1.11 |
Windows XP has been unsupported by Microsoft for over 5 years. |
They dropped support for Go 1.11 golang/go#34742
They dropped support for Go 1.11 golang/go#34742
@bradfitz Do I have to upgrade go to newer version or is there a workaround? |
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
)?go env
OutputWhat did you do?
Using x/sys/windows in my project now causes compilation errors when it did not previously.
Here is a sample source file:
This used to compile but no longer does. It fails with these errors:
The issue looks to be caused by this merge:
https://go.googlesource.com/sys/+/ef33b2fb2c414dca4bfcf6ca59cbd1d9ad00703d
The text was updated successfully, but these errors were encountered: