-
Notifications
You must be signed in to change notification settings - Fork 18k
net: GODEBUG=netdns=cgo does not take priority over netgo build tag #69680
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
It works as expected |
@mateusz834 I don't think the docs currently mention that. https://pkg.go.dev/net#hdr-Name_Resolution That also seems like something the debug log should directly state, instead of seemingly ignoring the GODEBUG setting entirely. |
@rittneje I agree, will send a CL to mention that in the docs. |
@ianlancetaylor any thoughts on this? We can mention that in the |
Change https://go.dev/cl/616262 mentions this issue: |
For the case of |
Also the same issue exists for |
Change https://go.dev/cl/616263 mentions this issue: |
Updates #69680 Change-Id: If80d43da493cb035164ede4a2cadcbec5831feaf GitHub-Last-Rev: b3853e9 GitHub-Pull-Request: #69682 Reviewed-on: https://go-review.googlesource.com/c/go/+/616262 Auto-Submit: Ian Lance Taylor <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]> Reviewed-by: Michael Knyszek <[email protected]> Reviewed-by: Ian Lance Taylor <[email protected]>
Go version
go version go1.22.7 darwin/amd64
Output of
go env
in your module/workspace:What did you do?
I ran a program as follows:
What did you see happen?
What did you expect to see?
It should be noted that
GODEBUG
takes priority in the reverse situation.The text was updated successfully, but these errors were encountered: