-
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
cmd/cgo/internal: platform-specific test files are missing build constraints #60164
Comments
Oh, darwin is failing as well: https://build.golang.org/log/68018cc7868317a8acd303829ef65abfbcea625a |
Oh, neat! Because of the lack of build constraints, the test fails when we attempt to load it as a normal (attn @aclements; CC @dmitshur @ianlancetaylor) |
Darn. I thought I'd checked that, but I guess not. I have on my cleanup list moving as many conditions in dist as possible down into the tests, but I'll do a more targeted fix for this to unbreak things. |
Change https://go.dev/cl/494658 mentions this issue: |
Change https://go.dev/cl/494659 mentions this issue: |
This test package uses the Pdeathsig field of syscall.SysProcAttr, which is only available on a few platforms. Currently, dist test checks for compatible platforms and only registers it as part of all.bash on platforms where it can build. But this doesn't help if you're just trying to type check everything in cmd. Make this package pass type checking by moving the condition from dist into build tags on the test package itself. For #60164. Updates #37486. Change-Id: I58b12d547c323cec895320baa5fca1b82e99d1b5 Reviewed-on: https://go-review.googlesource.com/c/go/+/494658 Auto-Submit: Austin Clements <austin@google.com> Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org> Reviewed-by: Bryan Mills <bcmills@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Run-TryBot: Austin Clements <austin@google.com>
https://build.golang.org/log/68018cc7868317a8acd303829ef65abfbcea625a
CC @bcmills @golang/release @golang/tools-team
The text was updated successfully, but these errors were encountered: